📄 l12.1a
字号:
#printWrite a program which reads two numbers andprints the larger one in decimal. Use the same"getnum" subroutine. Compile, test and type"ready" as usual.#once #create Ref114039 89#once #create Ref220022 23001#once cp %s/getnum.o .#usera.out <Ref1 >x1a.out <Ref2 >x2grep 14039 x1 >/dev/null || grep 23001 x2 >/dev/null#succeed/* One way: */main() { int n1, n2; n1 = getnum(); n2 = getnum(); printf("%d\n", n1 > n2 ? n1 : n2);}/* You could also use something like if (n1 > n2) printf("%d\n", n1); else printf("%d\n", n2); */#log#next12.1b 10
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -