C Program to Find area of a Rectangle

Area of Rectangle Formula is :- area = length * width

				
					#include<stdio.h>
int main(){
	
	//C program to find area of rectangle
	
	int length, width, area;3
	
	//input length and width of rectangle
	
	printf("Enter Length:- ");
	scanf("%d",&length);
	printf("Enter Width:- ");
	scanf("%d",&width);
	
	//Calculate area of rectangle
	
	area = length * width;
	
	//Print area of rectangle
	printf("Area of Rectangle = %d",area);
	
	return 0;
}
				
			

Output

C Program to Find area of a Rectangle

C Program to Find area of a Rectangle

Leave a Comment

Your email address will not be published. Required fields are marked *