📄 l5.2b
字号:
#print(Section 1.5)Write a program which reads a character from itsinput and tests whether that character is larger than100 in numeric value. If so, read two morecharacters, and print the value of the second of themin octal. Compile and test your program, then type "ready".#once #create Ref1u V has value 126#once #create Ref2. V should not be processed#usera.out <Ref1 >test1a.out <Ref2 >test2grep 126 test1 >/dev/null || cmp -s test2 /dev/null#succeedOne way:main(){ if (getchar() > 100) { getchar(); printf("%o\n", getchar()); }}#log#next5.1c 10
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -