bsc

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

root / semester_1 / tuition-c / APC-PRAC-001.c

APC-PRAC-001.c (476B)


      1 /* WAP to calculate area and perimeter of a rectangle 
      2 by accepting length and breadth as input. */
      3 
      4 #include<stdio.h>
      5 int main() {
      6     double length, breadth, area, perimeter;
      7     printf("Enter the length and breadth of the Rectangle : ");
      8     scanf("%lf %lf", &length, &breadth);
      9     area = length * breadth;
     10     perimeter = 2 * (length + breadth);
     11     printf("\nArea of the Rectangle : %g"
     12            "\nPerimeter of the Rectangle : %g", area, perimeter);
     13     return 0;
     14 
     15 }
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror