APC-PRAC-001.c (614B)
1 /* 2 * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 3 * Repo: https://github.com/notamitgamer/bsc 4 * License: MIT 5 */ 6 7 /* WAP to calculate area and perimeter of a rectangle 8 by accepting length and breadth as input. */ 9 10 #include<stdio.h> 11 int main() { 12 double length, breadth, area, perimeter; 13 printf("Enter the length and breadth of the Rectangle : "); 14 scanf("%lf %lf", &length, &breadth); 15 area = length * breadth; 16 perimeter = 2 * (length + breadth); 17 printf("\nArea of the Rectangle : %g" 18 "\nPerimeter of the Rectangle : %g", area, perimeter); 19 return 0; 20 21 } 22