Credits

Thursday, February 12, 2009

Brain Twister in C: Loops

Identify and correct the errors from the codes below.

for(int x=1;x<=5;x++);
printf("Hello);

int y=105;
While y>100
{ Printf(“%d”,y);
y--;}

int x=10;
Do
Printf(“Your number is %d:,x);
X++;
while (x>1);

AddThis