How to compute Small Programmes in Various Language

The following programmes compute in various language:

FORTRAN:

To calculate sum of 10 Numbers:

The sum of 10 Numbers
Sum = 0
DO 50 I = 1,10
Read (5,10) N
SUM = SUM +N
Continue
Write (6,20) Sum
Format (F6,2)
Format (1X, 'The sum of Given Numbers =', F10,2)
Stop
End

BASIC

To calculate sum of 10 Numbers:

Rem The sum of 10 Numbers
Let S = 0
For 1 = 1 to 10
Read N
Let S = S + N
Next 1
Print " The sum of Given Numbers = ", S
Data 4,20,15,32,48
Data 12,3,9,14,44
END

As well as we compute every programme in COBOL, PASCAL, C and C++ , Java etc.
Format (F6,2)
Format (1X, 'The sum of Given Numbers =', F10,2)
Stop
End