-->

solution2


// program to get area and perimeter of rectangle
#include<stdio.h>
#include<conio.h>
void main()
{
float l,b;
float area,perimeter;
printf(“enter length and breadth of rectangle\n”);
scanf(“%f%f”,&l,&b);
area=l*b;
perimeter=2*(l+b);
printf(“the area is=%f\n”,area);
printf(“the perimeter=%f\n”,perimeter);
getch();
}
you did not understand how it works! follow the “C” learning part/section (coming soon).