鏂版墜闂?? 姹傝В绛
程序代码:
#include"stdio.h" void kang() { int x,z,y; scanf("%d%d",&z,&y); x=z+y; printf("%d+%d=%d",z,y,x); } void yang() { int p,d,t; scanf("%d%d",&d,&t); p=d-t; printf("%d-%d=%d",d,t,p); } main() { int a,b锛宬锛宻=151152; kk:printf("璇疯緭鍏ュ瘑鐮?); scanf("%d"锛?k); if(k==s) { :scanf("%d%d",&a,&b); if(a>b) kang(); else yang(); } else if(k锛?s) printf("瀵嗙爜閿欒?\n"); goto kk; return 0; }