Write a C program to enter length and breadth of a rectangle and find its area. #include<stdio.h> #include<conio.h> void main() { clrscr(); int area,length=10,width=5; area = length*width; printf("The area of a rectangle is :- %d",area); getch(); } Output :- #include<stdio.h> #include<conio.h> void main() { clrscr(); int length,breadth,area; printf("Enter the length and breadth of rectangle :-"); scanf("%d %d",&length,&breadth); area = length * breadth; printf("The area of rectangle is :- %d",area); getch(); } Output :-
All computer course for class 9th to 12th with proper practical and theory .........