Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "Circle Area Calculator (cm2)" << endl;
- cout << "****************************" << endl;
- cout << "" << endl;
- system("pause");
- double diameterInput;
- cout << "Input the diameter of your circle: ";
- cin >> diameterInput;
- system("pause");
- system("cls");
- double diameterAfterPI = diameterInput * 3.1415926536;
- cout << "The Area of the circle is: " << diameterAfterPI << " (cm2)" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement