pls help
|
Light Poster
|
|
| 20Jun2007,08:03 | #1 |
|
can you make a program in C that inputs 10 numbers and output if it is odd or even and the number from lowest to highest... pls ^^
|
|
Go4Expert Founder
|
![]() |
| 20Jun2007,08:10 | #2 |
|
Looks like its your assignment and its you who should be doing it. We can always help you in the process but just can't give you all the code you need to submit to your faculty
|
|
Light Poster
|
|
| 20Jun2007,08:16 | #3 |
|
just a code for odd or even...pls
|
|
Go4Expert Founder
|
![]() |
| 20Jun2007,08:21 | #4 |
|
Code:
if(number%2 == 0)
printf("Number is Even");
else
printf("Number is Odd");
|
|
Newbie Member
|
|
| 20Jun2007,13:14 | #5 |
|
Code:
for(int i=0; i < 10;i++) {
cout << "Enter a number" << endl;
cin >> number;
if(number%2 == 0)
printf("Number is Even");
else
printf("Number is Odd");
}
|

