ShriRam Changed status to publish July 15, 2022
#include<stdio.h> void main() { int even=0,odd=0,num,i; printf("Enter 10 numbers : "); i=1; while(i<=10 ) { scanf("%d",&num); if(num%2==1) odd=odd+1; else even=even+1; i++; } printf("Even=%d and Odd=%d",even,odd); getch(); }
ShriRam Changed status to publish July 15, 2022