#include <iostream>
int main()
{
int x{ 19 };
std::cout << "Hola!" << '\n';
std::cout << "Me llamo Kay\n";
std::cout << "And I am " << x << " years old\n";
std::cout << "Who are you?\n";
int y{};
std::cin >> y;
std::cout << "You are " << y << "?" << '\n';
return 0;
}
So i want the code to run a program that goes:
- Hola!
- Me llamo Kay
- And I am 19 years old
- Who are you?
- [user enters whatever]
- You are [user entered]?
But instead what I get is:
- Hola!
- Me llamo Kay
- And I am 19 years old
- Who are you?
- [user enters whatever]
- You are 0?