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