C Programming Homework Unit 1 Lab 1
C Programming Homework Unit 1 Lab 1
between 20 and 40. Algorithm: 1. Start 2. Output List of Even Numbers 20 to 40 3. Put 20 in number 4. If number divide by 2 has remainder 1 go to step 6 5. Output number 6. Number + 1 7. If number is less than 41 go to step 4 8. End
Task 2: Create Pseudo flowchart from algorithm to decide the fastest time of two racers. Algorithm: 1. Output Enter Bobbys Time 2. Put Bobbys Time in number 3. Output Enter Alices Time 4. Put Alices Time in number 5. If Alice = Bobby, Output Tie 6. If Bobby < Alice, Output Bobby 7. If Alice < Bobby, Output Alice 8. End