Name: ____________________________________________________ Alpha: _____________________
Describe help received: _________________________________________________________________
|
Identify the following components for function readRow by circling
and labeling them in the code.
|
| output: |
~/$ ./hw 2/4, 6/9, 3/11, 21/5, 8/10; 3/11 is in lowest terms! 21/5 is in lowest terms!In writing this program, define and use a function
gcd
that takes
two positive integers and returns their greatest common divisor. (Check out Class 10 to remind yourself about computing
gcd's.)
Turn In the codeprint of your program.
Submit:
~/bin/submit -c=IC210 -p=hw17 hw.cpp