
![]() |
@k4tr1n4 | |
Hellow to all.Mmmh please help me to my assignment.Here's the question.Build a program.that could post odd and even number 1 to 100.And after that it will get the total of even.And odd number.thanks in advance |
||
1
Replies
1913
Views
0 Bookmarks
|
![]() |
@casa69 | 21 August 06 |
If u know how mod works, mod numbers from 1 to 100 with 2. Use an if statement to check the result. If the result is 0, then the number is even. Otherwise it is odd. Hope this helps.
|
||


