QBASIC
QBASIC category contains programs written in QBASIC programming language. This is an archive page that contains the collection of programs written in that language.
About Me:
I am a web developer with expertise in web development using various web technologies.
I have always been fascinated and enthusiastic about technology ever since my childhood. I always wanted to be familiar with what, why, and how of technologies. Web development has been my only passion ever since I started learning it. Following this passion, I have always been ready to learn new technologies and implement them in my projects.
I do have expertise in coding and have a good understanding of various languages like QBASIC, C/C++, Python, Java, Ruby, etc. along with front-end technologies like HTML, CSS, JavaScript, jQuery, AJAX, React, and Vue. I also have experience in developing websites and web applications using backend technologies like PHP, Ruby on Rails in combination with the database system MySQL.
Website: https://developeranil.tech
Make sure to post the comments for each program if you have any issues. I will respond to it as soon as possible.
Below is the QBASIC program to calculate the perimeter of a rectangle. Explanation: Let’s first see the formula: Perimeter = 2 * (l + b). So, we can determine the perimeter of a rectangle by taking the length and breadth of the rectangle from the user and multiplying the sum of length and breadth by …
QBASIC – Perimeter of rectangle Read More »
Below is the QBASIC program to calculate the area of a circle. Explanation: Let’s first see the formula: Area = pi * r * r, where the value of pi is 3.14. So, we can determine the area of a circle by taking the radius of the circle from the user and multiplying the value …
QBASIC – Area of a circle Read More »
Below is the QBASIC program to calculate the area of a square. Explanation: Let’s first see the formula: Area = length * length or Area = length ^ 2. So, we can determine the area of a square by taking the length of the square from the user and multiplying the length by itself or …
QBASIC – Area of square Read More »
Below is the QBASIC program to calculate the area of a rectangle. Explanation: Let’s first see the formula: Area = length * breadth. So, we can determine the area of a rectangle by taking the length and breadth of the rectangle from the user and multiplying the length and breadth together.
The program below calculates the sum of cubes of two user input numbers. Explanation: To calculate the sum of cubes of two user input numbers. We are using the exponentiation operator (^) to calculate the cubes of the numbers i.e., a ^ 3 and b ^ 3 to calculate the cubes of a and b …
QBASIC – Calculate the sum of cubes Read More »
The program below calculates the sum of squares of two user input numbers. Explanation: To calculate the sum of squares of two user input numbers. We are using the exponentiation operator (^) to calculate the squares of the numbers i.e., a ^ 2 and b ^ 2 to calculate the squares of a and b …
QBASIC – Calculate the sum of squares Read More »
Let’s understand how to calculate the sum of natural numbers from 1 to n. The program below will display the total of all numbers from 1 to n i.e., 1 + 2 + 3 + 4 + 5 + …… + n. Explanation: If you remember in the program to display the sum of numbers …
QBASIC – Sum of n natural numbers Read More »
Let’s understand how to calculate the sum of numbers from 1 to 5. The program below will display the total of all numbers from 1 to 5 i.e., 1 + 2 + 3 + 4 + 5. Explanation: This is a little different use of the FOR looping statement. If you remember in the program …
QBASIC – Sum of numbers from 1 to 5 Read More »
Following is a program to calculate the square root and cube root of any user-entered number in QBASIC. Explanation: To calculate the square root or cube root of any number, we will be using the exponentiation operator (^) as used in calculating the square and cube of any number. However, unlike raising the power of …
QBASIC – Calculate square root and cube root of a number Read More »
Below is the program to calculate the sum and average of three user input numbers. Explanation: To find the sum of three numbers we take the numbers as input from the user and use the addition operator (+). After calculating the sum, the average is calculated by dividing the sum of the numbers by the …
QBASIC – Find sum and average of three numbers Read More »