Please login to post your comments.
Fill in the blanks.
State whether the following statements are True (T) or False (F).
Give the output of the following program fragment (a):
class Loop1
{
public static void main()
{
int b;
b=1;
while (b<=19)
{
System.out.println(b+" ");
b+=2;
}
}
}Write the general syntax of 'while' loop.
Write a program to input an integer and find the sum of its digits.
Write a program to input an integer and find the product of its digits.