#include "stdio.h"
main()
{
int a,b, sum,less,multiply,residue;
/*sum--和 less--差 multiply--积 residue--余数*/
printf(pleas input two number:\n");
scanf("%d%d",&a,&b);
printf("a=%d
b=%d \n",a,b);
sum=a+b;
printf("sum=%d\n",sum);
if(a>b)
less=a-b;
else
less=b-a;
printf("less=%d\n",less);
multiply=a*b;
printf("multiply=%d\n",multiply);
residue=a%b;
printf("residue=%d\n",residue);
}
应该是你想要的结果吧!
[
本帖最后由 liu200909 于 2009-10-13 23:06 编辑 ]