+ 2

How to make this c++ program?

Write a c++ program to input choice 1 or 2.If choice is 1 print area of a circle otherwise print the perimeter of circle.

12th Dec 2016, 1:04 PM
Samhita Joshi
Samhita Joshi - avatar
3 ответов
+ 3
use switch case and try yourself. if thereafter any error I will correct it.
12th Dec 2016, 1:20 PM
Bibek Ghimire
Bibek Ghimire - avatar
+ 1
You should really try harder to find the answer by yourself. Forums are not meant to answer your homework, or at least, post the code you have so far.
12th Dec 2016, 1:10 PM
clambercy
clambercy - avatar
+ 1
seriously guys 😂😂 At least try of ur own.. (hint: after main.. get the user input for finding area of circle and the perimeter of circle.. and in the switch pass a int value.. n for both the cases pass 1 and for the other 2.. in case 1 write the print statement for area of circle.. and in case 2 write the print statement for perimeter of circle.)
12th Dec 2016, 2:02 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar