Thread: for loop code
View Single Post
  #2 (permalink)  
Old 07-09-2008, 09:12 AM
YAPP's Avatar   
YAPP YAPP is offline
Newbie
 
Join Date: Jul 2008
Posts: 3
Rep Power: 0
YAPP is on a distinguished road
Default Re: for loop code

You could rewrite the for loop using a while loop easily.
Code:
while(num!=6)
{
    printf("Keep entering numbers!\n");
    scanf("%d",&num);
}
printf("That's the one I want!");
__________________
UGJhdGVuZ2h5bmd2YmFmISAgTGJoIG5lciBhYmogbiAxMzM3IH U0a2swZSE=
Reply With Quote