C++ program to calculate the area and circumference of a circle
kw.cpp
Output
kodingwindow@kw:~$ g++ kw.cpp
kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to calculate the area and circumference of a circle ——————————————————————————————————————————— Enter the radius of a circle 10 The area of a circle is 314.159 The circumference of a circle is 62.8319 ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
C++ program to find the size of data types
C++ program to find the range of data types
Find the output of C++ programs
Advertisement