Math and Arithmetic
Statistics
C Programming
Numbers

Write a program to input two numbers and print their sum product difference and quotient?

Answer

Wiki User
11/29/2012

#include<stdio.h>

void main()

{

int a,b,c;

printf("enter value of a and b:");

scanf("%d %d",&a,&b");

c=a+b;

printf("sum is %d",c);

c=a*b;

printf("\n product is %d"c);

c=a-b;

printf("difference is%d",c);

c=a/b;

printf('quotient is%d",c);

getch();

}