C Basics
Area of a Rectangle
Take length and breadth as input and print the area.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Take length and breadth as input and print the area.
#include <stdio.h>
int main() {
float length, breadth;
printf("Enter length and breadth: ");
scanf("%f %f", &length, &breadth);
printf("Area = %.2f\n", length * breadth);
return 0;
}
Enter length and breadth: 5 3
Area = 15.00