-
-
Save programmingfaster0226/04bf3c77f51cb6369657fc5985fb4890 to your computer and use it in GitHub Desktop.
programmingfaster.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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