Set2
Set2
int count = 0;
do{
System.out.println(“Hello”);
Count++;
}while(count<5);
a. 3
b. 4
c. 5
d. 6
9. What is the output of the following?
a. System.out.println( “four :” +4+2 );
b. System.out.println( “four:” +(2+2) );
14. WAP to enter any 50 numbers and check whether they are divisible by 5 or not. If divisible then
perform the following tasks.
a. Display all the numbers ending with the digit 5
b. Count those numbers ending with 0(zero)