Wisdom Materials
Home
About Us
Our Clients
Careers
Services
Education
Jobs
News
Business
Health
Astrology
Entertainment
RealEstate
Devotion
Contact Us
C Programs
/ Area of Rectangle C Program
Program Name
Write a C Program for Area of Rectangle C Program.
Theory
Program Code
Copy Program Code
#include
int main() { int area,l,b,perimeter; l=5,b=7; printf("Enter Rectangle Length and Breath"); scanf("%d%d",&l,&b); area=l*b; printf("Rectangle area= %d \n",area); perimeter=2*(l+b); printf("Rectangle perimeter= %d",perimeter); return 0; }
Input
Enter Rectangle Length and Breath
2 3
Output
Rectangle area= 6
Rectangle perimeter= 10
Online C Compiler (To copy paste and Run the c program)
Home
Back