include<stdio.h>
#include<conio.h>
void main()
{
int area,radius;
clrscr();
printf("enter the radius");
scanf("%d",&radius);
area=3.14*radius*radius;
printf("the ans is ",area);
printf("the radius is ",radius)
getch();
}
Rewrite the above program so that the program accepts any value for the radius then recalculate the area of the circle.
A radius is half of a diameter. Example Diameter:4 Radius:2
In order to fully understand what the radius of a given circle is, you must know the diameter. The diameter is the distance across the circle through the center. The radius of a circle is half the diameter. For example, if the diameter of a circle is 8 inches, then the radius would be 4 inches.
program that display the area of a circle of a reduce
Area of any circle = pi*radius squared
int radius = 2; int output; radius = radius * 2; output = radius * Math.PI; Console.WriteLine(output);
A radius of a circle is half the diameter.
Rewrite the above program so that the program accepts any value for the radius then recalculate the area of the circle.
A radius is a line drawn from the centre of a circle to the edge of that circle. It is half the length of the diameter of the circle.
A radius is half of a diameter. Example Diameter:4 Radius:2
In order to fully understand what the radius of a given circle is, you must know the diameter. The diameter is the distance across the circle through the center. The radius of a circle is half the diameter. For example, if the diameter of a circle is 8 inches, then the radius would be 4 inches.
program that display the area of a circle of a reduce
Area of any circle = pi*radius squared
It depends on what information you do have about the circle. For example, circumference = 2*pi*radius.
A circle with radius 1/sqrt(pi) is one example.
"There is not a grocery store within a mile radius of my house."
Write a program that calculates the area of a triangle in QBASIC