C# program to calculate the perimeter of Circle
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Program:
The source code to calculate the perimeter of the Circle is given below. The given program is compiled and executed successfully on Microsoft Visual Studio.
Output:
Explanation:
Here, we created a class Circle that contains a method Main(). The Main() method is the entry point for the program. Here we read the value of the radius and calculate the perimeter of the Circle using the below formula, and then print the result on the console screen.