Skip to main content
Search
Search This Blog
learn coding
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
September 13, 2022
Program to check whether given integer is even or odd using if statement
Program to check whether given integer is even or odd using if statement
#include<stdio.h>
void main()
{
int num;
printf(“Enter an integer\n”);
scanf(“%d”, &num);
if(num%2==0)
{
printf(“Number is Even\n”);
}
if(num%2!=0)
{
printf(“Number is Odd\n”);
}
}
Comments
Popular Posts
September 25, 2022
automate the boring stuff with python book pdf
September 23, 2022
intro to python book (for computer science and data science)pdf download
Comments
Post a Comment