MATSEC May 2003 Paper 1 Que 13

Using any high level programming language of your choice, write a program

which asks the user to input a number between 2 and 10 and outputs the

corresponding multiplication table.I need to work this program on Pascal. Turbo Pascal 7.0 precisely.

Please respond telling me what is required from me exactly because I didn't understand the question clearly and how to work it out ASAP.

Thankyou very much and I appreciate any help.

The following code (in Turbo Pascal 7) worked fine for another guy Program MulTab; var size, i, j:integer; Begin WriteLn; Write ('Enter the size of the multiplication table> '); ReadLn (size); WriteLn; WriteLn ('MULTIPLICATION TABLE':32); WriteLn; Write ('|':8); for i:=1 to size do Write (i:5); WriteLn; Write (' -----+'); for i:=1 to size do write ('-----'); WriteLn; for i:=1 to size do begin Write (i:5, '|':3); for j:=1 to size do write (i*j:5); WriteLn end; WriteLn; Write ('Press <ENTER> to quit...'); ReadLn End.

Ask Your Question

Weekly Poll