A) (Assume the user enters George Washington.)
#include
using namespace std;
int main()
{
string userInput;
cout <>
cin >> userInput;
cout <><>
return 0;
}
B) (Assume the user enters George Washington.)
getline(cin, userInput);
C) (Assume the user enters 36720152. Use a calculator.)
long seconds;
double minutes, hours, days, months, years;
cin >> seconds;
minutes = seconds / 60;
hours = minutes / 60;
days = hours / 24;
years = days / 365;
months = years * 12;
cout <><><>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here