#include<stdio.h>intmain(){float length, width, perimeter;printf("Enter length of the rectangle: ");scanf("%f",&length);printf("Enter width of the rectangle: ");scanf("%f",&width);
perimeter =2*(length + width);printf("Perimeter of rectangle = %f units ", perimeter);return0;}
No comments