#include #include #include using namespace std; int main() { int i = 0; float f = 0; double d = 112.119499888; f = 12.119499888; do { cout << "\n i="<< i++ << setw(20) << "Double = " << setprecision(10) << d; // cout << setw(20) << i++ << setw(10) << setprecision(8) << " First = " << f << setprecision(2) << " Second = " << f << "\n"; cout << setw(20); switch (i) { case 0: cout << "It's 0" << endl; break; case 1: cout << "It's 1" << endl; break; case 2: cout << "It's 2" << endl; break; case 3: cout << "It's 3" << endl; break; case 4: cout << "It's 4" << endl; break; } } while (i < 5); char c = 'b'; cout << endl << endl << endl; switch (c) { case 'a': { cout << "It's a" << endl; cout << "Wasn't that fun! " << endl; break; } case 'b': cout << "It's b" << endl; break; case 'c': cout << "It's c" << endl; break; case 'd': cout << "It's d" << endl; break; case 'e': cout << "It's e" << endl; break; } cout << endl << endl << endl; if (isdigit(c)) { cout << "\n It's a number"; } else { cout << "\n It's NOT a number"; } }