program doesn't end loop =P
also, i have to print the hottest and the coolest day. but can't figure how to do it. because day number can be any number. just give me tips. i want to do by myself. =PCode:#include <stdio.h> int main(void) { int i,temp; for (i=1;;i++) { do { printf("Enter the temperature for day %d (-300 to end): ",i); scanf("%d",&temp); } while (temp=!-300); } return 0; }



LinkBack URL
About LinkBacks



PLay MystWind beta , within two years
I used to be an adventurer like you... then I took an arrow to the knee.