c program to find area rectangle










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






Alogrithm:
**




No comments: