#include <stdio.h> int main() { float length, width, area; printf("Enter length of rectangle: "); scanf("%f", &length); printf("Enter width of rectangle: "); scanf("%d", &width); area = length * width; printf("Area of rectangle = %f sq. units ", area); return 0; }
No comments