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
If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates !
Complicated ?
If you have any question about any Post, Don't hesitate to ask question.You can simply drop a comment below post or contact via contact Us form by Clicking Here Your Feedback always appreciated.
0 comments :
Post a Comment