l12.1a

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1A 代码 · 共 36 行

1A
36
字号
#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 + =
减小字号Ctrl + -
显示快捷键?