lundi 8 avril 2019

I can not compare randomly generated numbers [on hold]

I'm starting to program in C, and I was lost to do this exercise:

• Generate a random number between 1 and 100 and check -The number belongs to the range between 10 and 30 -The number is equal to 50 -The number is greater than 70

Note: How do I solve this, knowing only if/else, switch/case and function rand? I have not yet learned "for", nor "while" ... Obs2: I use codeblocks




Aucun commentaire:

Enregistrer un commentaire