#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
print(“Enter two Numbers”);
Scanf(“%d%d”,&a,&b);
Add(a,b);
Subtract (a,b);
Multiply(a,b);
Devide(a,b);
getch();
}
Void Add(int a,int b)
{
printf(“add:%d”,a+b);
}
Void Substract(int a,int b)
{
printf(“Sub:%d”,a-b);
}
Void Multiply(int a,int b)
{
printf(“Mul:%d”,a*b);
}
Void Devide(int a,int b)
{
printf(“Div:%d”,a/b);
}
Output:
Enter Two Numbers 10 20
Add:30
Sub:-10
Mul:200
DIV:0
No comments:
Post a Comment