C program to find Sum and check Even or odd number— Take nothing Return Nothing ( C program Coding )
Coding—
#include<stdio.h>
#include<conio.h>
void main();
void Evenodd();
void main()
{
clrscr();
Evenodd();
getch();
}
void odd()
{
int a,b,c;
printf("Enter two value");
scanf("%d%d",&a,&b);
c=a+b;
printf("addition of=%d",c);
}
void Evenodd()
{
int a;
printf("Enter the value");
scanf("%d",&a);
if(a%2==0)
printf("Even=%d",a);
else
printf("odd=%d",a);
}
Output—
Enter two value=3
4
addition of=7
Enter the value=3
odd=3
(🙂Amar Singh sisodiya🙂)
#include<stdio.h>
#include<conio.h>
void main();
void Evenodd();
void main()
{
clrscr();
Evenodd();
getch();
}
void odd()
{
int a,b,c;
printf("Enter two value");
scanf("%d%d",&a,&b);
c=a+b;
printf("addition of=%d",c);
}
void Evenodd()
{
int a;
printf("Enter the value");
scanf("%d",&a);
if(a%2==0)
printf("Even=%d",a);
else
printf("odd=%d",a);
}
Output—
Enter two value=3
4
addition of=7
Enter the value=3
odd=3
(🙂Amar Singh sisodiya🙂)
Comments
Post a Comment
Please Subscribe and Comments my blog site.