Tuesday 31 December 2019

Computer Studies For Class IX (Science) and X (Arts /General /Humanities Group) - Practical No.12

Go To Index

Practical No. 12: W.A.P. to calculate the sum of first ten natural numbers.


10 CLS
20 For A=1 to 10 Step 1
30 Let S=S+A
40 Print A,S
50 Next A
RUN

No comments:

Post a Comment