00000000: 50 52 4F 47 52 41 4D 20 53 55 4D 28 49 4E 50 55 |PROGRAM SUM(INPU|
00000010: 54 2C 4F 55 54 50 55 54 29 3B 0D 56 41 52 20 41 |T,OUTPUT);.VAR A|
00000020: 2C 42 2C 54 4F 54 41 4C 20 3A 20 49 4E 54 45 47 |,B,TOTAL : INTEG|
00000030: 45 52 3B 0D 42 45 47 49 4E 0D 20 20 20 20 57 52 |ER;.BEGIN. WR|
00000040: 49 54 45 4C 4E 28 27 45 4E 54 45 52 20 54 57 4F |ITELN('ENTER TWO|
00000050: 20 4E 55 4D 42 45 52 53 20 54 4F 20 42 45 20 41 | NUMBERS TO BE A|
00000060: 44 44 45 44 2E 2E 2E 27 29 3B 0D 20 20 20 20 52 |DDED...');. R|
00000070: 45 41 44 28 41 2C 42 29 3B 0D 20 20 20 20 54 4F |EAD(A,B);. TO|
00000080: 54 41 4C 20 3A 3D 20 41 20 2B 20 42 3B 0D 20 20 |TAL := A + B;. |
00000090: 20 20 57 52 49 54 45 4C 4E 28 27 54 48 45 20 53 | WRITELN('THE S|
000000A0: 55 4D 20 4F 46 27 2C 20 41 20 2C 27 41 4E 44 27 |UM OF', A ,'AND'|
000000B0: 2C 20 42 20 2C 27 49 53 27 2C 20 54 4F 54 41 4C |, B ,'IS', TOTAL|
000000C0: 29 0D 45 4E 44 2E 0D 03 |).END... |
PROGRAM SUM(INPUT,OUTPUT);.VAR A,B,TOTAL
: INTEGER;.BEGIN. WRITELN('ENTER TWO
NUMBERS TO BE ADDED...');. READ(A,B)
;. TOTAL := A + B;. WRITELN('THE S
UM OF', A ,'AND', B ,'IS', TOTAL).END...
×
C64 Image
> CLICK IMAGE PREVIEW FOR FULL MODAL