write full program in c++ result? [closed]

  c++

Write Full Program with Function to Implement following:
*. function name (fn_circle) : to find area and perimeter of circle
*. function input (a) (c)
. if (c) is (1) then it’s mean to find area and result will be (a^2 * 3.14)
. if (c) is (2) then it’s mean to find perimeter and result will be (2a
3.14)

note:
*. all variables must be double
*. value (a) (c) must enter at run-time
*. for test program please try numbers below and write result

a=10,c=1 *
Result=

a=1,c=2 *
Result=

a=2,c=1 *
Result=

a=1,c=10 *
Result=

Source: Windows Questions C++

LEAVE A COMMENT