BSD 4_3_Tahoe release
[unix-history] / usr / lib / learn / C / L2.1b
CommitLineData
d6c1f319
C
1#print
2(Section 1.2)
3Write a C program that prints a number which is
4the sum of three numbers: 23, 197, and the product
5of 23 and 197. Again, compile and test
6it. Please do the computation with the program -
7if you do it by hand, I'll give you credit for the
8work, but it's just stupid.
9#user
10a.out >test
11grep 4751 test >/dev/null
12#succeed
13/* Here is one possible solution */
14
15main()
16{
17 printf("%d\n", 23 + 197 + 23*197);
18}
19#log
20#next
212.1c 10