AREA AND PERIMETER OF RECTANGLE

#include<stdio.h>
#include<conio.h>
void main()
{
float b,l,A,P;
printf("Enter length and breadth of rectangle:\n");
scanf("%f%f",&l,&b);
A=l*b;
P=2*(l+b);
printf("Area of Rectangle: %f\n",A);
printf("Perimeter of Rectangle : %f",P);
getch();
}

Comments

Popular posts from this blog

KM TO CM

volume of sphere