/* * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 * Repo: https://github.com/notamitgamer/bsc * License: MIT */ /* Given the length and breadth of a rectangle, write a program to find whether the area of the rectangle is greater than it's perimeter. For example, the area of the rectangle with length = 5 and breadth = 4 is greater than its perimeter. */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(e) */ #include int main() { double len, bre, area, peri; printf("Enter the length and breadth of the rectangle : "); scanf("%lf %lf", &len, &bre); area = len * bre; peri = 2 * (len + bre); if (area > peri) printf("\nThe area of the rectangle is greater than it's perimeter."); else if (area < peri) printf("\nThe area of the rectangle is lower than it's perimeter."); else printf("\nThe area of the rectangle is same as it's perimeter."); return 0; }