programming9
  • Flowcharts
  • Programs
      • Back
      • C Programs
      • C++ Programs
      • Java Programs
      • Python Codes
      • HTML Codes
      • Java Script Codes
      • SQL Codes
  • Tutorials
      • Back
      • Java Tutorials
      • Competitive Programming
      • Python Tutorials
      • C Programming
  • Blog
  • Login

C Program to Find Area of Rectangle

Details
Written by: RajaSekhar
Category: C Programs
  • basic c programs

Area of a rectangle can be calculated using length * breadth

#include<stdio.h>

int main()
{
    float length,breadth;
    float area;
    clrscr();

    printf(" Enter the Length of a Rectangle : ");
    scanf("%f",&length);

    printf("\n Enter the Breadth of a Rectangle : ");
    scanf("%f",&breadth);

    area = length * breadth;

    printf("\n Area of Rectangle is : %f",area);
    return 0;
}

 OUTPUT:

Enter the Length of Rectangle : 3.2

Enter the Breadth of Rectangle : 4

Area of Rectangle : 12.800000
Previous article: C Program to Find Area of a Square Prev Next article: C Program to find Area of a Circle Next
  • C Program to Implement RADIX SORT
  • C Program to Find Given Integer is Positive or Negative
  • C Program to Calculate NCR
  • C Program for Sum of Squares of Numbers from 1 to n
  • C Program for String Comparison without using Built in Function
  • C Program for Fibonacci Series using While Loop
  • C Program to Compare Two Strings using strcmp()
  • C Program to find Area of a Circle
  • C Program to Implement SJF CPU Scheduling Algorithm
  • Finding GCD and LCM of Given Numbers using C
  • C Program to Find String Length with out using Function
  • C Program to Implement Structure with Array
  • C Program for LINEAR SEARCH
  • C Program for Finding Factorial of a Number
  • C Program to Calculate Sum of Even Values in an Array
  • Privacy Policy
  • Cookie Policy
© programming9.com 2025
Back to top