THE COMPUTER LOVERS

#1 In Tutorials, News, Videos And Hot Updates On >>> HTML || JAVA || C,C++,C# || WEB DESIGN || PROGRAMMING || SCRIPTING || TUTORIALS

QBASIC Programming Tutorial – 9 – Getting Users Input




Learn how to begin program using BASIC programming language for Beginners...
For more information.. Drop your comments...

GET THE SOURCE CODE BELOW



  PROGRAM TO CALCULATE THE AVERAGE OF THREE NUMBERS

1 CLS
2 REM PROGRAM TO CALCULATE THE AVERAGE OF THREE NUMBERS
3 NUM1 = 10
4 NUM2 = 20
5 NUM3 = 40
6 SUM = NUM1 + NUM2 + NUM3
7 AVE = SUM / 3
8 PRINT SUM
9 WRITE AVE
10 END

PROGRAM TO  CALCULATE THE AREA OF A TRIANGLE

5 CLS
10 REM PROGRAM TO  CALCULATE THE AREA OF A TRIANGLE
20 INPUT "ENTER YOUR BASE  ", B
30 INPUT "ENTER YOUR HEIGHT ", H
40 PI = 0.5
50 AREA = PI * B * H
60 PRINT "THE AREA OF A TRIANGLE ID = ", AREA
70 END

Use it anywhere it free...

Post a Comment

[blogger]

MKRdezign

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget