BASIC QBASIC PROGRAMS
BASIC QBASIC PROGRAMS
Here today we will know about some basic Qbasic Programs.
CODE FIRST
1)Write a program to enter your name and print it .
CLS
Input "Enter you name";n$
Print "The name is ";n$
End
2)Write a program to find the area of rectangle.
CLS
Input " enter the length " ;l
Input " enter the breadth " ;b
let A = l*b
Print" the area of rectangle=" ;a
END
3)Write a program to find the area of the triangle.
Cls
Input " enter the base" ;b
Input " enter the height" ;h
let T = 1/2*b*h
Print" The area of triangle=" ;T
End
4)Write a program to find the area of the circle.
Cls
Input" Enter the radius " ;R
Let C=22/7*R^2
Print " The area of circle =" ;C
End
5)Write a program to find the area of the square.
Cls
Input" Enter the number" ;n
Let square= n^2
Print" The area of square=" ;Square
End
6) Write a program to find the volume of a cube.
CLS
INPUT"Enter the side" ;n
Let cube = n^3
PRINT"The volume of cube = " ;cube
END
7)Write a program to find the average of three different numbers.
Cls
Input" Enter the number " ;A
Input" Enter the number " ;B
Input" Enter the number " ;C
Let Avg= (A+B+C)/3
Print" The average=" ;Avg
End
You can make more projects like this by using your thinking capacity. It's very easy and simple.
Also You can use Qbasic in your Android Phone. Here's given how.👇
Step 1:- Go through this link and download qb.exe.
Step 2 :- Download aFreeBox from play store.
Step 3 :- Open aFreeBox and type qb.exe.
Step 4 :- Press Enter.
Step 5 :- Press ESC Tab.
And it's done..
If you found any difficulties You can watch the video given below.
Comments
Post a Comment