public class man {public static void main(String[] args) {StringBuffer s1 = new StringBuffer("Complete");s1.setCharAt(1,'i');s1.setCharAt(7,'d');System.out.println(s1);}}
terms = 6result = list(map(lambda x: 2 ** x, range(terms)))print("The total terms are:",terms)for i in range(terms):print("2 raised to power",i,"is",result[i])
What is the output of the following program?class psg{public static void main(String args[]){int harry=7,vinya;vinya= ++harry + harry++ + --harry;System.out.println(harry + "," + vinya);}}