#include #include int main() { double usenum; cout << "This program calculates the square root and\n" << "reciprocal (1/number) of a number\n" << "\nPlease enter a number: "; cin >> usenum; if (usenum < 0.0) cout << "The square root of a negative number does not exist.\n"; else cout << "The square root of " << usenum << " is " << sqrt(usenum) << endl; if (usenum == 0.0) cout << "The reciprocal of zero does not exist.\n"; else cout << "The reciprocal of " << usenum << " is " << (1.0/usenum) << endl; return 0; }