#include<stdio.h> int main() { int A,B; while(scanf("%d%d",&A,&B)!=EOF) { printf("%d + %d = %d ",A,B,A+B); printf("%d - %d = %d ",A,B,A-B); printf("%d * %d = %d ",A,B,A*B); printf("%d / %d = %d ",A,B,A/B); } }
#include<stdio.h> int main() { int A,B; while(scanf("%d%d",&A,&B)!=EOF) { printf("%d + %d = %d ",A,B,A+B); printf("%d - %d = %d ",A,B,A-B); printf("%d * %d = %d ",A,B,A*B); printf("%d / %d = %d ",A,B,A/B); } }