pls help

Light Poster
20Jun2007,08:03   #1
weirdo_xto's Avatar
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
shabbir's Avatar
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
weirdo_xto's Avatar
just a code for odd or even...pls
Go4Expert Founder
20Jun2007,08:21   #4
shabbir's Avatar
Code:
if(number%2 == 0)
  printf("Number is Even");
else
  printf("Number is Odd");
Newbie Member
20Jun2007,13:14   #5
cheap freelancer's Avatar
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");
}