#include <iostream>
int main (void)
{
int x; // define variables
int y;
int temp;
std::cout << "Input X value: "; // get x and y values form user
std::cin >> x;
std::cin.ignore();
std::cout << "Input Y Value: ";
std::cin >> y;
std::cin.ignore();
temp = x; // switch values
x = y;
y = temp;
std::cout << std::endl << std::endl; // print new values
std::cout << "Haha! I switched up your values!" << std::endl << std::endl;
std::cout << "The new X = " << x << "." << std::endl;
std::cout << "The new Y = " << y << "." << std::endl << std::endl;
std::cout << "Press \'Enter\' to continue..."; //exit program safely
std::cin.ignore();
return 0;
}