QBASIC – Perimeter of rectangle
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 …