Write a c program to find the area of rectangle


#include <stdio.h>
int main()
{
    float length,width,area;
    printf("Enter the length of the rectangle: \n");
     scanf("%f",&length);
    printf("Enter the width of the rectangle: \n");
  scanf("%f",&width);
    area=length*width;
    printf("Area of the rectangle is= %f", area);
    return 0;
}

Comments

Popular posts from this blog

Automations and robotics

Solid Pattern Program In Java Language

Palindrome Pattern Program In Java Language