标签:ret col style 入门 scan == bsp include com
1 /* 2 邮件:xuejineng2016@163.com 3 2020年5月5日 4 5 */ 6 #include<stdio.h> 7 int main(void) 8 { 9 int a, b; 10 scanf("%d %d", &a, &b); 11 12 printf("%d + %d = %d\n", a, b, a + b); 13 printf("%d - %d = %d\n", a, b, a - b); 14 printf("%d * %d = %d\n", a, b, a * b); 15 if (a % b == 0) { 16 printf("%d / %d = %d\n", a, b, a / b); 17 } else { 18 printf("%d / %d = %.2f\n", a, b, 1.0 * a / b); 19 } 20 21 return 0; 22 }
标签:ret col style 入门 scan == bsp include com
原文地址:https://www.cnblogs.com/2018jason/p/12835174.html