Showing posts with label gwbasic. Show all posts
Showing posts with label gwbasic. Show all posts

Wednesday, January 9, 2013

a GWBASIC programme with goto command

Friends today i am going to share a simple programme, which is only work on symbols just a graphical programme which is attractive and simple2 ..... work with goto command

Lets stat

a star programme with goto command



10 cls
20 print"*"
30 print"**"
40 print"***"
50 print"****"
60 print"*****"
70 print"******"
80 print"*****"
90 print"****"
100 print"***"
110 print"**"
120 print"*"
130 goto 20
140 end



Or copy it from here:

10 cls

20 print"*"

30 print"**"

40 print"***"

50 print"****"

60 print"*****"

70 print"******"

80 print"*****"

90 print"****"

100 print"***"

110 print"**"

120 print"*"

130 goto 20

140 end


Try out and have fun,
Enjoy :-)

Monday, December 31, 2012

Menu programme GWBASIC

A new programme of GW BASIC for you. TRY IT!

it is a programme called:
"MENU PROGRAMME"
it is a proggrame which is work on ch(choice command) & on goto command it is a nice programme and attractive and much usefull:

so first open GWBASIC or NOTEPAD to do job:
In GW BASIC you will have to write these all codes

But in notepad just copy and paste code below:


10 cls
20 print"1.......Adiition"
30 print"2.......Subtraction"
40 print"3.......Multiplication"
50 print"4........Divison"
60 print"5.........Exit"
70 input" YOUR CHOICE";ch
80 on ch go to 90,160,230,300,370
90 cls
100 print"Addition"
110 input"Number1";n1
120 input"Number2:;n2
130 sum=n1+n2
140 print"Answer";sum
150 goto 20
160 cls
170 print"SUBTRACTION"
180 input"Number1";n1
190 input"Number2";n2
200 sub=n1-n2
210 print"Your answer";sub
220 goto 20
230 cls
240 print"Multiplication"
250 input"Number1";n1
260 input"Number2";n2
270 mul=n1*n2
280 print"Product";mul
290 goto 20
300 cls
310 print"DIVISION"
320 input"Number1";n1
330 input"Number2";n2
340 div=n1/n2
350 print"Answer";div
360 goto 20
370 end


Now press F2 for results!


IMPORTANT

: For notepad before saving file don't forget to change the extension of file change file extension from ".txt" to ".bas"


You are done if have any confusion go to questions askers page and feel free to ask your question!

Don't forget to give Give FEED BACK.

Programming by: Muneeb QAZI

Sunday, December 30, 2012

GW BASIC introduction

"GWBASIC" 
Q:what is G.W BASIC actually????


GW BASIC is a language which was made first in the year of 1982. It is use for making programmes or softwares such as calculator, a buisness software, for gaming,mark sheet,bank records etc. Now a days it's need is in office and schools..... 

Q:2) how it actually works?


it works with commands and use "Interpreter" as translator. 
some of the commands such as following:

1) cls
2) auto
3) print
4) syntax
5) goto
6) while
7) Wend 

etc

and in this we see two categories "numeric value"  and sting value:

1) Numeric values are those values which consist only on number e.g 12134569 


2) Alphanumeric/Sting value are those values which consist on alphabates and numeric or only alphabatic.


we use no any special variable for "numeric value" but for "Alphanumeric/sting value" we use "$" before value
  
A example of programme:

cls
print"Online Education"
print"www.muneebonlineworks.blogspot.com"
end

press F2 key to run your programme 


it was a little introduction for GWBASIC i will share more about it and progrrames for Thanks!
Muneeb Qazi 

If  you like please dont forget to share this and give your feed back to me!

Any question or need help feel free just go to our question askers page and ask your questions.

An article by: Muneeb Qazi