17 solutions available
Question 1Write a program to generate the following output.* * # * # * * # * # * # * # *
Question 2Write a program to print the series given below.5 55 555 5555 55555 555555
Question 3(i)Write a program in Java to display the following patterns.1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Question 3(ii)Write a program in Java to display the following patterns.1 * * * * * 2 * * * * * 3 * * * * * 4 * * * * * 5
Question 3(iii)Write a program in Java to display the following patterns.# * * # # # * * * * # # # # #
Question 3(iv)Write a program in Java to display the following patterns.1 * * * * 2 2 * * * 3 3 3 * * 4 4 4 4 * 5 5 5 5 5
Question 3(v)Write a program in Java to display the following patterns.* * * * 5 * * * 4 * * 3 * 2 1
Question 3(vi)Write a program in Java to display the following patterns.A B C D E A B C D A B C A B A
Question 3(vii)Write a program in Java to display the following patterns.5 4 3 2 1 4 3 2 1 3 2 1 2 1 1
Question 3(viii)Write a program in Java to display the following patterns.J J A J A V J A V A
Question 3(ix)Write a program in Java to display the following patterns.1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5
Question 3(x)Write a program in Java to display the following patterns.1 2 3 4 5 2 3 4 5 3 4 5 4 5 5 4 5 3 4 5 2 3 4...
Question 4(i)Distinguish between the following:break statement and labelled break statement
Question 4(ii)Distinguish between the following:continue statement and labelled continue statement
Question 5(i)What will be the value of sum after each of the following nested loops is executed?int sum = 0; for (int i = 0; i <= 10; i++) for...
Question 5(ii)What will be the value of sum after each of the following nested loops is executed?int sum = 0; for (int i = 1; i <= 3; i++)...
Question 6Write a program to generate a triangle or an inverted triangle till n terms based upon the user's choice of triangle to be...