#include <stdio.h>

int main() {
    float l,b,ar,pr;
    printf("Enter area and peremeter of rectangle:\n");
    scanf("%f%f",&l,&b);
    ar=l*b;
    pr=2*(l+b);
    printf("\nArea of rectangle: %f and peremeter of rectangle: %f",ar,pr);
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: