FIND THE NO IS EVEN OR ODD USING WITH FUNCTION...
#include<stdio.h>
#include<conio.h>
void even_odd (void);
void main()
{
clrscr();
even_odd();
getch();
}
void even_odd()
{
int num;
printf("enter the number");
scanf("%d",&num);
if(num%2==0)
{
printf("number is even");
}
else
{
printf("number is odd");
}
}
#include<conio.h>
void even_odd (void);
void main()
{
clrscr();
even_odd();
getch();
}
void even_odd()
{
int num;
printf("enter the number");
scanf("%d",&num);
if(num%2==0)
{
printf("number is even");
}
else
{
printf("number is odd");
}
}
OUTPUT
Enter the number- 5
number is odd
REALTED C LANGUAGE PROGRAMS::
1.How to make E shape piyramid ??
2. How to make V shape piyramid ??
3. How to make circule without using graphics ??
PROGRAMER BOY SHUBHAM
blog is created by programer boy shubham it is help in easy to learn c programing
.jpeg)
Nice bro thnx for creat this blog site it is to very hlpful for us learn programing
ReplyDelete