write the program and display the message even or odd using function.
#include<stdio.h>
#include<conio.h>
int display(int num){
if(num%2==0){
printf("even number");
}
else
{
printf("odd number");
}
}
void main()
{
int a;
clrscr();
printf("input the number:");
scanf("%d",&a);
display (a);
getch();
}
Comments
Post a Comment