Wednesday, February 10, 2010

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=12
3*5=15
3*6=18
3*7=21
3*8=24
3*9=27
3*10=30

0 comments:

  © Blogger template 'A Click Apart' by Ourblogtemplates.com 2008

Back to TOP