Multiplier
You are required to draw a flowchart for a module named multiplier, to produce a multiplication table for multiplicands from 1 to 10. The module should use a loop to produce the output. The flowchart should have a formal parameter called X. The module should multiply X by 1 up to 10. Note that the module should be able to produce the table for any value passed as an argument. For example, if the module was called with 2 as an argument, the flowchart should produce the twos timetable as shown below.
2 * 1 = 2
2 * 2 = 4
2 * 3 = 6
2 * 4 = 8
2 * 5 = 10
2 * 6 = 12
2 * 7 = 14
2 * 8 = 16
2 * 9 = 18
2 * 10 = 20
Leave a Reply
Want to join the discussion?Feel free to contribute!