Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

hi guys im really new to C. one of my homework is to have the user input a number from 1-100. if the user inputs a number out of that range then nothing will happen. but if the user puts 45 number 45-100 should show =/. can someone please give me a hint on which type of loop i should use? is it for or while >.<

OpenStudy (anonymous):

nvm xD i got it to work

OpenStudy (anonymous):

for(i;(i>=45&&i<=100);i++) { printf("%d",i);break;} i think while helps too

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!