C+ Plus Program - Tscl channel 12

C+ Plus Program

 C Program 10


#include<stdio.h>

int main ()

{

int num;

printf("\n enter any number to check even or odd:");

scanf("%d",&num);

if(num%2==0)


{

printf("%d is even \n", num);

}

else

{

printf("%d is odd \n", num);

}

}

C+ Plus Program C+ Plus Program Reviewed by Tejpal singh on March 14, 2022 Rating: 5

No comments:

Adsss

Powered by Blogger.