Hello coders, in this post we will how to write C Program to Calculate Area of Rectangle. This is a very basic C program.
As you already know that this site does not contain only c programming solutions here, you can also find the solution for other problems. I.e. Web Technology, Data Structures, RDBMS Programs, Java Programs Solutions, Fiverr Skills Test answers, Google Course Answers, Linkedin Assessment, Leetcode Solutions, and Coursera Quiz Answers.

if you want to learn C programming free of cost please visit:
C Program to Calculate Area of Rectangle
// C Program to Find Area of Rectangle #include <stdio.h> int main(){ int length, breadth, area; // Asking for input printf("Enter the length of the rectangle: "); scanf("%d", &length); printf("Enter the breadth of the rectangle: "); scanf("%d", &breadth); // Calculating Area area = length * breadth; // Displaying the output printf("Area of the Rectangle: %d", area); return 0; }
Output
Enter the length of the rectangle: 4 Enter the breadth of the rectangle: 6 Area of the Rectangle: 24
Conclusion
I hope after going through this post, you understand how to write a C Program to Calculate Area of Rectangle, if there is any case program is not working and showing an error please let me know in the comment section.