Skip to main content

Posts

Showing posts from January, 2016

QBASICprogramming

1. Enter any two number and display its sum.         CLS    INPUT"Enter first number";A    INPUT"Enter second number";B    S = A + B    PRINT"Sum of two numbers=";S    END   2. Enter any three numbers  and display its product.          CLS    INPUT"Enter first number";A   INPUT"Enter second number";B    INPUT"Enter third number";C   P=A * B * C   PRINT"Product of three number=";P   END 3.Enter any five numbers and display its average.   CLS INPUT"Enter first number";A INPUT"Enter second number";B INPUT"Enter third number";C INPUT"Enter fourth number";D INPUT"Enter fifth number";E AVG=(A+B+C+D+E)/5 PRINT"Average of five numbers=";AVG END 4. Enter any two numbers and display its sum,difference,product and average. CLS INPUT"Enter first number";A INPUT"Enter second numbe...