GW Programmer for Creating a Table for any Number
program code for Creating the Table for any number in gwbasic is as under:
Code
10 Input " Enter Number for the Table", A
20 Print " Table for the Number ", A
30 For I =1 To 10
40 Print A " * " I " = " A*I
50 Next I
60 END
Output
(assume that given number is 3 for output)
3*1=3
3*2=6
3*3=9
3*4=123*6=18
3*7=21
3*8=24
3*9=27
3*10=30
0 comments:
Post a Comment