Advertisement
DrAungWinHtut

1-area.c

Mar 2nd, 2023
897
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. int area()
  3. {
  4.     //Input storatge
  5.     float L = 0.0;
  6.     float W = 0.0;
  7.     //Output storage
  8.     float A = 0.0;
  9.  
  10.     printf("Please enter L: ");
  11.     scanf_s("%f", &L);
  12.  
  13.     printf("Please enter W: ");
  14.     scanf_s("%f", &W);
  15.  
  16.     A = L * W;
  17.  
  18.     printf("Area = %0.2f", A);
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement