Week 1: Programming Assignment 1
Due on 2023-08-10, 23:59 IST
Complete the code segment to find the perimeter and area of a circle given a value of radius.
You should use Math.PI constant in your program. If radius is zero or less than zero then print " please enter non zero positive number ".
Input | Output | |
Test Case 1 | 2.0 | 12.566370614359172 12.566370614359172 |
No comments