Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
programmingfaster.com
#include<stdio.h>
#include<conio.h>
void main()
{
float l,b,a,p;
printf("enter length and breadth of a rectangle");
scanf("%f%f",&l,&b);
a=l*b;
p=2*(l+b);
printf("the area of rectangle is :%f",a);
printf("\n the perimeter of rectangle is :%f",p);
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.