#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,sum,sub,mult;
float div;
clrscr();
printf(" enter the value of a and b\n");
scanf("%d%d",&a,&b);
sum=a+b;
sub=a-b;
mult=a*b;
div=a/b;
printf("the sum is =%d",sum);
printf("the sub is =%d",sub);
printf("the mult is =%d",mult);
printf("the div is =%f",div)
getch();
}
#include<conio.h>
void main()
{
int a,b,sum,sub,mult;
float div;
clrscr();
printf(" enter the value of a and b\n");
scanf("%d%d",&a,&b);
sum=a+b;
sub=a-b;
mult=a*b;
div=a/b;
printf("the sum is =%d",sum);
printf("the sub is =%d",sub);
printf("the mult is =%d",mult);
printf("the div is =%f",div)
getch();
}
No comments:
Post a Comment