#include <iostream> #include <cmath> using namespace std; int main() { int a = 0; int b = 0; int c = 0; int d = 0; double e = 0; double j = 0; double radius[b]; double area[a]; double circum[c]; double new_radius[d]; string input; string as = "A"; string AS = "a"; string de = "D"; string DE = "d"; // radius while ( b < 5) { cout << "Radius of circle " << b + 1 << ": "; cin >> radius[b]; b = b + 1; } // the problem is past this point b = 0; // area while (b < 5) { area[a] = pow(radius[b],2) * 3.14159; b = b + 1; a = a + 1; cout << radius[0] << endl; } b = 0; // circum while (c < 5) { circum[c] = radius[b] * 2 * 3.14159; c = c + 1; b = b + 1; } a = 0; b = 0; c = 0; cout << "Circle" << " " << "Area" << " " << "Circumfance" << " " << "Radius" << endl; while (d < 5) { cout << "Circle " << d + 1 << " " << area[a] << " " << circum[c] << " " << radius[b] << endl; d = d + 1; a = a + 1; b = b + 1; c = c + 1; |
|
|
|
|