Skip to main content

Cs 201 3rd assignment solution

//*plese edit before submit
#include <iostream>
#include <cmath>
#include <iomanip>
//* http://vubest.blogspot.com/
using namespace std;
int main()
{
float radius;
float fAreaCircle;
float fCircumferenceCircle;
cout << "\nEnter the radius of circle: " ;
cin >> radius;
//****************************************
cout << "\nThe radius of circle is: " << radius << endl;
//* use this formula for calculation
fAreaCircle = (M_PI * radius) * radius;
fCircumferenceCircle = (2.0 * M_PI) * radius;
cout << "The area of the circle is: " << fAreaCircle << endl;
cout << "The circumference of the circle is: " << fCircumferenceCircle << endl;
system("Pause");
return 0;
}
//* http://vubest.blogspot.com/

Comments

Popular posts from this blog

Drupal Answers Weekly Newsletter - Wednesday, December 31, 2014

Top new questions this week: Can I delete old hook_update_N functions? Suppose you have a custom module, and you have hook_update_N() implementations in your .install file. If you have old update functions, and all updates have run in all sites that the module is ... node-update hook-update-n   asked by AyeshK ...

[New post] 8th Class Result 2014 PEC Hafizabad Board

Muhammad Waqas posted: "PEC Hafizabad Board 8th Class Result 2014 expected date is 28th March, 2014 by PEC. Punjab Examination Commission (PEC) will announce 8th class result for Hafizabad Board soon and all the students of Hafizabad Board who are extremely waiting for the resul" New post on Jobs in Pakistan 8th Class Result 2014 PEC Hafizabad Board by Muhammad Waqas ...

[New post] 1st Year (11th Class) Result 2014 BISE Rawalpindi Board

Xaib Aslam posted: "BISERWP board Inter part 1 result expected on 10th October 2014 according our source. students of Rawalpindi board desperately waiting for 11th class result. 1st they upload the 12th class result and after some time they ready for showing the 1st year fin" New post on Jobs in Pakistan 1st Year (11th Class) Result 2014 BISE Rawalpindi Board by Xaib Aslam ...