12345678910111213141516171819202122232425
#include <iostream> using namespace std; int main(){ bool test = true; double decimal; cout << "choose a Number that is < 0" << endl; do{ cin >> decimal; if(decimal < 0){ cout << "***"<< endl; test = false; } else if(decimal >= 0.00){ cout << ":" << decimal << ":" <<endl; true; cout << "You did not choose a number that is < then 0" << endl; cout << "Please try again" << endl; } else{ cout << "error" <<endl; } }while(test); system("pause"); }