How to write a C Program to calculate Area, Perimeter of Rectangle; Area, Circumference of Circle in C Programming Language ?
Solution:
The program helps you calculate the area and perimeter of a rectangle.
It also calculates the area and the circumference of the circle.
The values of Length, Breadth and Radius are to be entered through the keyboard.
The length and breadth of a rectangle and radius of a circle are input through the keyboard. Write a program to calculate the area and perimeter of the rectangle, and the area and the circumference of the circle.
/* aor: area of rectangle por: perimeter of rectangle aoc: area of circle coc: circumference of circle */
The circumference of a circle is same as the perimeter that is the distance around the outer edge.
The formula of circumference is = 2 pi r (pi's symbol) where r = the radius of the circle and pi = 3.14(Approx)
#include <stdio.h>
//C program to find Area and Circumference of a Circle with Sample Input and Output.
How to write a C program calculates a given function in range given by user, stores the data in arrays and displays the answer in a table in C Programming Language ?