| |
- Type in the
Hello World
program, compile it, and run it.
- Write a program that prints:
Hello World!
So long!
I must be going!
Do not use any escape codes.
- Rewrite the program you just wrote so that it has only one statement
inside
main.
(Recall that this is not really recommended programming
style at this level, but is useful to know how to do later on in your career.)
- Write a program that prints the text:
\\ is for backslash!
- Write a program that prints:
1 / 3 = 0.3333333333333333
where the last number is the result of doing the appropriate computation,
rather than a string or numeric literal appearing in the program.
|