📄 l11.1a
字号:
#printWith your 'cc' command you can give the name ofan object file to be loaded with your program.For example cc x.c y.owill load the previously compiled program 'y' along withthe program 'x' to be compiled now.The file "getnum.o" contains a subroutine "getnum" whichreads an integer and returns its value.Write a program which reads a number and decideswhether or not it is a multiple of 23. If so print"yes" and otherwise print "no".Compile and test; then type "ready".#once #create Ref123000#once #create Ref223001#once cp %s/getnum.o .#usera.out <Ref1 >z1a.out <Ref2 >z2grep yes z1 >/dev/null || grep no z2 >/dev/null#succeed/* One way: */main() { if (getnum()%23 == 0) printf("yes\n"); else printf("no\n");}#log#next12.1a 10
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -