bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

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 
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror