/*
*PAT IO-02 整数四则运算
*2015-07-30
*作者:flx413
*/ #include<stdio.h>
int main()
{
int a, b;
scanf("%d%d", &a, &b);
printf("%d + %d = %d\n", a, b, a + b);
printf("%d - %d = %d\n", a, b, a - b);
printf("%d * %d = %d\n", a, b, a * b);
printf("%d / %d = %d\n", a, b, a / b);
return ;
}

PAT IO-02 整数四则运算-LMLPHP

05-08 07:59