Learn c programming and geometry. It will be easy when you know both.
class area{ int l,w,a; a=i*w; printf"area of rectangle is= %d",a; endl; }
Area of a circle = pi*radius2
Find the area of the circle and divide by 4.
how do you find the area of a semi circle
Write a program that calculates the area of a triangle in QBASIC
Learn c programming and geometry. It will be easy when you know both.
Write a c program to compute the surface area and volume of a cube
Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }
#include<stdio.h> #define PIE 3.142 void main() { int r,sum; printf("Enter the radius of area\n"); scanf("%d",&r); sum=PIE*r*r; printf("The area of circle is:%d",sum); }
By using that one thing.
#include<stdio.h> void main() { int r; int pi=3.14; float cir,area; printf("/n enter the radius of the circle"); scanf("%d",&r); cir=2*pi*r; area=pi*r*r; printf("the circumference of the circle is%d",cir); printf('the area of the circle is %d",area); } check related links
all you do is find the area of the circle... if you mean find the squares area, find the area of the circle, and then the square's area and subtract the squares area to the circles area
echo -n "Enter the radius of a circle : "read r# use formula to get itarea=$(echo "scale=2;3.14 * ($r * $r)" | bc)# use formula to get itd=$(echo "scale=2;2 * $r"|bc)circumference=$(echo "scale=2;3.14 * $d"| bc)echo "Area of circle is $area"echo "Circumference of circle is $circumference"# ### softspy88@gmail.com
class area{ int l,w,a; a=i*w; printf"area of rectangle is= %d",a; endl; }
You find the area of the whole square first. Then you find the area of the circle inside of it And then subtract the area of the circle from the area of the square and then you get the shaded area of the square
To find the area of the circle pi*radius*squared and subtract the area of the figure inside