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 for Fibonacci Series Using for Loop
  • C program to Convert Number to Words
  • C Program to CONCATENATE Two Strings using strcat()
  • C Program to Implement Doubly Linked List Operations
  • C Program to find Area of a Circle
  • C Program for Multiplication Table using Goto Statement
  • C Program to Find Factorial of a Number using Functions
  • C Program to Evaluate POSTFIX Expression Using Stack
  • C Program to Calculate Sum of Marks to Demonstrate Structures
  • C Program for Matrix Multiplication
  • C Program to Solve Tower of Hanoi Problem Using Recursive and Non-Recursive
  • C Program for Sum of Digits of a Number using Recursion
  • C Program to Sort List of Strings
  • C Program to Print Addresses of Variables
  • Page Replacement Programs in C
  • Privacy Policy
  • Cookie Policy
© programming9.com 2025
Back to top