Write a program in c find the number is even or odd - CodeTextPro | Web Tutorial | Technology

CodeTextPro.com Provides - Web design, Technology gyan, Digital marketing, Online earnings, Seo, Adsense, Technology news, Motivation and inspiration, Latest Technology Affairs, Gadgets, Blogging

Friday, January 4, 2019

Write a program in c find the number is even or odd

Find the number is Even or Odd

#include<stdio.h>
#include<conio.h>
main()
{
int a;
printf("Enter The Number: ");
scanf("%d",&a);
if(a%2==0)
{
printf("a is even");
}
else
{
printf("a is odd");
}
getch();
}


Output:





No comments:

Post a Comment