QBASIC – Area of square

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 »

QBASIC – Area of rectangle

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.