21 lines
274 B
C
21 lines
274 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main() {
|
||
|
float l, w; /* Length and Width */
|
||
|
|
||
|
printf("Rectangle Area\n");
|
||
|
|
||
|
printf("Length: ");
|
||
|
scanf("%f", &l);
|
||
|
|
||
|
printf("width: ");
|
||
|
scanf("%f", &w);
|
||
|
|
||
|
printf("Area: %f\n", l*w); /* Area = length x width */
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
|