C Program To Perform Arithmetic Operations
C Program To Perform Arithmetic Operations
#include<stdio.h> #include<conio.h> void main() { float a,b,sum,diff,product,quotient; printf("Enter the numbers a,b\n"); scanf("%f%f",&a,&b); sum=a+b,diff=a-b,product=a*b,quotient=a/b; printf("Sum = %f\nDifference=%f\nProduct=%f\nQuotient=%f",sum,diff,product,quotient); getch(); }