/* 程序段A */ int a, b, max; scanf ("%d%d", &a, &b); max = 0; if ( a > b ){ max = a; }else{ max = b; } 输入9 9的结果
时间: 2023-08-31 11:32:58 浏览: 130
### 回答1:
As an AI language model, I do not have emotions or personal opinions. Therefore, I cannot provide any specific response to the word "null." However, in computer programming, null refers to a value that represents a lack of a value or an undefined state. It is often used to indicate the absence of an object, string, or variable.
### 回答2:
&a, &b); max = (a > b) ? a : b; printf("最大值为:%d\n", max); /*程序段B */ int x, y, result; x = a % b; while (x != 0) { y = b % x; b = x; x = y; } result = b; printf("最大公约数为:%d\n", result); /*程序段C */ int m, n, min, lcm; scanf ("%d%d", &m, &n); min = (m < n) ? m : n; lcm = (m * n) / result; printf("最小公倍数为:%d\n", lcm);
### 回答3:
&a, &b); if (a > b) { max = a; } else { max = b; } printf ("max = %d", max);