a) i =1;
while(i10);
++i;
}
b)for(k =0.1; k !=1.0; k +=0.1)
System.out.println(k);
c)switch(n)
{
case1:
System.out.println("The number is 1");
case2:
System.out.println("The number is 2");
break;
default:
System.out.println("The number is not 1 or 2");
d) The following code should print the values 1 to 10:
n =1;
while(n10)
System.out.println(n++);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here