整数四则运算(10)

#include<stdio.h>
int main()
{
	int A,B;
	while(scanf("%d%d",&A,&B)!=EOF)
	{
		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);
	}
}

posted on 2015-01-21 13:19  赛亚人  阅读(152)  评论(0编辑  收藏  举报