摘要:
1、#includeint main(void){ int x,y; printf("Enter x:"); scanf("%d",&x); if(xint main (void){ int count,i,n; double grade,total; printf("Enter n:"); scanf("%d",&n); total=0; count=0; for(i=1;i=60) { count++; } } printf("Grade average=%.2f... 阅读全文
摘要:
习题(二)1#includeint main(void){ int num1,num2,a,s,d; double f,g; printf("输入num1,num2:"); scanf("%d%d",&num1,&num2); a=num1+num2; s=num1-num2; d=num1*num2; f=num1/num2; g=num1%num2; printf("和=%d\n差=%d\n积=%d\n商=%.2f\n余数=%.2f",a,s,d,f,g); return 0;}为了美观使用\n 发现真是美观~习题 阅读全文