6 Aug 2019

  • August 06, 2019
  • Amitraj

/* C Program find to area and perimeter of Rectangle */        by Amit raj purohit
 http://codevidyalay.blogspot.com 

#include<stdio.h>
int main()
{
float l,b,area,perimeter;

printf("Enter 2 values:");

scanf("%f%f",&l,&b);

area=l*b;
perimeter=2*(l+b);

printf("Aera=%f\n",area);
printf("Perimeter=%f",perimeter);
return 0;
}


INPUT/OUTPUT:
Enter 2 values:2 3
Aera=6.000000
Perimeter=10.000000










Translate

Popular Posts