#include main() { int num,ctr=0,odd,even; odd=even=0; clrscr(); while(ctr<10) { printf("\nEnter a number: "); scanf("%d",&num); (num%2==0)?even++:odd++; ctr++; } printf("%d no.s are odd And %d no.s are even",odd,even); getch(); }