Sunday 1 January 2017

Program to read radius of a circle, calculate area and perimeter and display them.

Share & Comment
CODE

#include <iostream.h>

#include <stdlib.h>

Int main ()

{  system(“CLS”)

                Double radius, area perimeter ;

                Cout << “Enter radius of the circle : “ ;

                Cin >> radius ;

                Perimeter = 2 * 3.14159 * Radius ;

                Area = 3.14159 * radius * radius ;

                Cout << “The area of the circle is ; “ ;

                Cout << “ \n The perimeter of the circle is : “ ;

                Cout << perimeter ;

                Return 0 ;
Tags:

Written by

Hy, i am a Code Geek ! And like to eduate others.

0 comments:

Post a Comment

 
Copyright © C++ Programming | Designed by Templateism.com