#include <stdio.h>
int main(){
int num1,num2;
int sum,sub,mul;
float div;
printf("enter the value of first number = ");
scanf("%d",&num1);
printf("enter the value of second number = ");
scanf("%d",&num2);
sum=num1+num2;
sub=num1-num2;
mul=num1*num2;
div=(float)num1/num2;
printf("the sum of given numbers is = %d\n",sum);
printf("the sub of given numbers is = %d\n",sub);
printf("the mul of given numbers is = %d\n",mul);
printf("the div of given numbers is = %f\n",div);
return 0;
}
No comments:
Post a Comment