Public feed
#381556
// Something more or less useful. This proggy takes raidius of a circle as user input and outputs the // diameter, circumference and area.// Ill'z own production #include <iostream>using std::cin;using std::cout;using std::endl;int main(){ int r; float pi; pi = 3.14159; cout << "Please enter the radius of your circle "; cin >> r; cout << "The diameter is " << 2 * r << endl; cout << "The circumference is " << 2 * pi *r << endl; cout << "The area is " << pi * r *r << endl; return 0;}