Computer Science, asked by vidhya2228, 1 year ago

Write a c program to compute area and perimeter of a rectangle?

Answers

Answered by jpaanshu
3


int main(){

    float length, width, area;

    printf("Enter length of Rectangle\n");

    scanf("%f", &length);

    printf("Enter width of Rectangle\n");

    scanf("%f", &width);

    /* Area of Rectangle = Length X Width */

    area = length * width;

    printf("Area of Rectangle : %0.4f\n", area);

getch();

    return 0;

}

Program OutputEnter length of Rectangle 6.5 Enter width of Rectangle 5 Area of Rectangle : 32.5000

jpaanshu: what about you Harshitha
harshitha006: 9th
jpaanshu: where are you from
harshitha006: hyd
jpaanshu: i am from u.p
vidhya2228: Iam from kerala
jpaanshu: nice you may be enjoying flood
vidhya2228: yz
jpaanshu: do you have fb id
vidhya2228: no
Similar questions