How to write a c program to find the area of a rectangle in C programming ?
Solution:
#include <stdio.h>
int main()
{
double x;
double y;
double area;
printf("Enter x: ");
scanf("%lf", &x);
printf("Enter y: ");
scanf("%lf", &y);
area = x * y;
printf("Area = %lf\n", area);
return 0;
}