#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter values of a,b");
scanf("%d%d",&a,&b);
c=a+b;
printf("\nthe sum of 2 numbers %d+%d=%d",a,b,c);
c=a*b;
printf("\nthe multiplication of 2 numbers %d*%d=%d",a,b,c);
c=a/b;
printf("\nthe dividision of 2 numbers %d/%d=%d",a,b,c);
c=a-b;
printf("\nthe subtraction of b from a %d-%d=%d",a,b,c);
getche();
}
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter values of a,b");
scanf("%d%d",&a,&b);
c=a+b;
printf("\nthe sum of 2 numbers %d+%d=%d",a,b,c);
c=a*b;
printf("\nthe multiplication of 2 numbers %d*%d=%d",a,b,c);
c=a/b;
printf("\nthe dividision of 2 numbers %d/%d=%d",a,b,c);
c=a-b;
printf("\nthe subtraction of b from a %d-%d=%d",a,b,c);
getche();
}
No comments:
Post a Comment