hello, here's my program and it keeps on reading a positive number until the user enters a zero and determines and outputs the largest number. My program runs fine. Now, I need to add a While, Do-Whie & For Loop! Any suggestions thanks!
int num = 1;
int temp = 1;
while( num != 0)
printf("Enter The Next Positive Number: \n\n");
scanf("%i" , &num);
if( num > temp )
temp = num;
} // end while loop, user pressed "0"
printf("The Largest Number Was: %i !", temp);