Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - For two input integers, the sum-difference product quotient is output as needed. Input format: enter two non-negative integers not exceeding 100 per line.
For two input integers, the sum-difference product quotient is output as needed. Input format: enter two non-negative integers not exceeding 100 per line.
# include & ltstdio.h & gt;

int main()

{

int a,b,c;

Scanf("%d %d ",&i, & b);

printf(" % d+% d = % d \ n % d-% d = % d \ n % d * % d = % d \ n ",a,b,a+b,a,b,a-b,a,b,a * b);

Double d = a *1.0/b;

c = a/b;

if(c=d){

printf("%d / %d = %d ",a,b,c);

}

Otherwise {

printf("%d / %d = %.2f ",a,b,d);

}

Returns 0;

}