+ 1
Calculate the area and the circumference of a circle with c programming
Can you please help me???
11 odpowiedzi
+ 5
import math module in c
Than take radius from user and use following formula
int area = PI*pow(radius,2);
+ 5
Use the math formulas.
+ 4
The formula is:
A=π*r^2 for area
C=2*π*r for circumference
+ 1
You can ping someone by typing @ followed by their name. But it won't work if you do so in the thread tags. You need to tag that person in your thread Description. Use the tags to specify context of the question and/or the language specification.
I suggest you to try and search the forum for similar threads first. As I recall, someone had asked this question before, so a search is in order to reduce duplicate questions.
For future reference follow this guide on posting a question.
Hope you understand 👍
https://www.sololearn.com/Discuss/333866/?ref=app
+ 1
no.
+ 1
You can default provide the Pi value and do simple calculation using formula.
0
you know the formula ?
0
Use the formulas and fit in the code
Area=πr^2
Circumference=2πr
- 2
Take pie to be 3.142