HTML Tutorial || Networking Assignment || Computer Full Forms || Ms-Office Shortcut Keys || Ms-Office Notes || Number System Notes || Internet Assignment
JavaScript Tutorial || CSS Tutorial || Operating System Notes || History of Computer Assignment || Netwoking Notes || Computer Fundamentals Notes

C Program to Enter Length and Breadth of rectangle and Find its Area ?

Q:- Write a C Program to Enter Length and Breadth of Rectangle and Find its Area ?

 Input
#include<stdio.h>
#include<conio.h>

int main()
    {
         float len,bre,area;
         clrscr();
         printf("Enter Length of Rectangle=");
         scanf("%f",&len);
         printf("Enter Breadth of rectangle=");
         scanf("%f",&bre);
  area=(len*bre);
  printf("Area of rectangle=%.2f",area);
  getch();
}


Output
Enter Length of rectangle = 10
Enter breadth of rectangle = 20
Area of Rectangle = 20.00 sq. Units 

Comments