#include<stdio.h> #include<conio.h> int main() { int n=100,evencount=0,oddcount=0; while(n!=1) { printf("enter any number"); scanf("%d",&n); if(n%2==0){ evencount++; } else oddcount++; } printf("the total no the even number until user entered 1 is %d\n",evencount); printf("the total of the odd number enterd until user enters 1 is %d\n",oddcount); }