Please solve the following.
i) Convert into while loop:
int x;
for(x = 10 ; x>=0 ; x = x - 2)
System.out.println(x);
System.out.println(x);
ii) Convert into switch – case:
char a;
if ( a = = ‘A’ || a = = ‘S’)
r = c + d ;
else if ( a = = ‘P’)
r = c * d ;
else
System.out.println(“ No Operation ”);
iii) Convert into for loop:
int a = 10, b, c;
while ( a > = 1)
{
System.out.println( a );
a - - ;
b = c + a;
}
Answers
Answered by
1
Answer:
hello how r u
I am a doctor do this isn't my thing
Similar questions