#include #include #include using namespace std; void disp(int n, char *msg){ cout << '\t' << n << msg; } int main(int argc, char **argv){ int num; if(argc>1) num = atoi(argv[1]); else{ cout << "Enter a number, and I'll tell \nyou if it is even or odd:\n\t"; cin >> num; } num%2 ? disp(num," is odd\n") : disp(num," is even\n"); long double smp = 2; cout.precision(45); cout << "sqrt(2): " << sqrtl(smp) << endl; cout << "sqrt(2) * 5: " << sqrtl(smp)*5 << endl; cout << "7 / sqrt(2): " << 7/sqrtl(smp) << endl; return 0; }