+ 1
How do I write a c++ program to output all even numbers, all odd numbers and all prime numbers within a given range?
4 Respuestas
+ 3
Clue for working out if a number is even or odd: investigate the % operator
+ 2
Thanks
+ 1
I did the prime numbers, I'll let you do the others :)
https://code.sololearn.com/c922n6tSOtex/?ref=app
Feel free to ask if you're confused about anything.
+ 1
try to use for while loop