#include using namespace std; int main() { int i; string a; cout << "Enter an integer:" << endl; cin >> i; cout << "You entered " << i << endl; cout << "Enter a string with no spaces:" << endl; cin >> a; cout << "You entered " << a << endl; cout << "Enter a string with spaces:" << endl; getline(cin, a); cout << "You entered " << a << endl; }