Question 5
Write a program to calculate the area and circumference
Answers
Answered by
1
Answer:
#ɪɴᴄʟᴜᴅᴇ<sᴛᴅɪᴏ.ʜ>
ɪɴᴛ ᴍᴀɪɴ() {
ғʟᴏᴀᴛ ʀᴀᴅɪᴜs, ᴀʀᴇᴀ;
ᴘʀɪɴᴛғ("\ɴᴇɴᴛᴇʀ ᴛʜᴇ ʀᴀᴅɪᴜs ᴏғ ᴄɪʀᴄʟᴇ : ");
sᴄᴀɴғ("%ᴅ", &ʀᴀᴅɪᴜs);
ᴀʀᴇᴀ = 3.14 * ʀᴀᴅɪᴜs * ʀᴀᴅɪᴜs;
ᴘʀɪɴᴛғ("\ɴᴀʀᴇᴀ ᴏғ ᴄɪʀᴄʟᴇ : %ғ", ᴀʀᴇᴀ);
ʀᴇᴛᴜʀɴ (0);
}
ĦØP€ IŦŞ Ħ€ŁP ¥ØỮ
Explanation:
Similar questions