[Previous Homework]
[Next Homework]
From Linux on the GL machine:
Make sure that you follow all the coding standards
Additional Instructions:
For example:
The limerick packs laughs anatomical
In space that is quite economical,
But the good ones Ive seen
So seldom are clean,
And the clean ones so seldom are comical.
hw03 - Intro to C
From Linux on the GL machine:
-
Write a C program (see below) and save it in a file called
limerick.c
in your cmsc104/hw03
directory
Compile the program:
gcc -Wall -o limerick limerick.c
Run the program to make sure it works:
./limerick
Use the SUBMIT utility turn in the homework.
submit cs104_grasso hw03 limerick.c limerick
Make sure that you follow all the coding standards
Additional Instructions:
- Modify the hello.c program to print out a limerick.
- You do not need to write your own limerick, you can use someone else's
- The limerick should LOOK like a limerick, ie, your program should print out 5 lines.
- Use one printf() statement for each line.
- Do NOT include ANY single or double quotes in your limerick. It will break your code.
For example:
The limerick packs laughs anatomical
In space that is quite economical,
But the good ones Ive seen
So seldom are clean,
And the clean ones so seldom are comical.