// Computing square with repeating #include using namespace std; int main() { int ok; do { double valnum; cout << "Input number: "; cin >> valnum; cout << "Number " << valnum << " squared is " << valnum*valnum << endl; cout << " Continue (1) or close (0)?" << endl; cin >> ok; } while (ok == 1); }