Activity - C and Shell
Goals
To experience use of mygcc
to compile C programs, to use editor to edit a C program, and to write a shell script to test the C program.
Tasks
- Copy the
guessprime
program into your own directory on plank, and compile it:
cp /thayerfs/courses/22spring/cosc050/workspace/guessprime4.c guessprime.c
mygcc -o guessprime guessprime.c
-
Try running the program a few times.
-
Write a shell script to test the C program with various inputs.