Menus

Friday 13 December 2019

Write a c program to find whether a number odd or even


Code


#include<stdio.h>

void main()
{
int a;
printf("Enter a number ");
scanf("%d",&a);

if(a%2==0)

  printf("The %d is even number\n",a);

else

  printf("The %d is odd number\n",a);

}

Video





No comments:

Post a Comment