By 26/03/2014 6 Comments

Exercise Program # 01 Operators in C++

Q : Write a program that will compute the area of a circle. The user must enter the radius of the circle. Use the following formula for area A=3.14*R^2?

Answer :

#include <iostream.h>  
#include <conio.h>

void main()
{      
     const float PI=3.14;
     int radius;
     float area;
     cout<<"Enter the radius of the circle: ";
     cin>>radius;
     area=PI*(radius*radius);
     cout<<"The area of the circle is "<<area;

     getch();
}






Posted in: C++ Exercises

Leave your valuable Comment

Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .