Posts

Showing posts from June, 2016

QBASIC Programming - VERSION 9.2

Image
Q.1) WAP to change degree Celsius into degree Fahrenheit. => CLS       INPUT "Enter degree celsius value" ; D       F = ( 9 * C / 5 ) + 32       PRINT "Degree Fahrenheit value = "; F       END  __________________________________________________________________________________ Q.2) WAP to change dollar into Nepali currency. => CLS       INPUT "Enter Dollar value"; USD       NRS = USD * 100       PRINT "Nepali currency value = "; NRS       END   ___________________________________________________________________________________ Q.3) WAP to change Indian currency into Nepali currency. => CLS       INPUT "Enter Indian currency value"; IC       NRS = IC * 1.6       PRINT "Nepali currency value = "; NRS       END _____________________________________________________...

QBASIC Programming - VERSION 9.1

Image
Q.1) WAP to find the area of rectangle. => CLS       INPUT "Enter length" ; L       INPUT "Enter breadth" ; B       A = L * B       PRINT "Area of rectangle = "; A       END        __________________________________________________________________________________ Q.2) WAP to find the area of square. => CLS       INPUT "Enter length"; L       A = L ^ 2       PRINT "Area of square = "; A       END __________________________________________________________________________________ Q.3) WAP to find the area of circle. => CLS        INPUT "Enter radius"; R       CONST PI =22/7       A = PI * R ^2     ...