// Lokessh 
// Noor Arinie binti Norhalil
#include <iostream>
using namespace std ;

// f(x) prototype
void swapMe(double, double);

int main()
{
	double first , second ;
	
	// Prompts the user to enter the value
	cout << "Enter the first number :  " << endl ;
	cin >> first ;
	cout << "Enter the second number : " << endl ;
	cin >> second ;
	cout << "You input the numbers as " << first << " and " << second << "." << endl ;
	
	// Call swapMe, passing the value in number
	swapMe(first, second);
	
	// Display the swap number
		cout << "After swapping, the first number has the value of "
	 	 	 << second << " which was the value of the second number."
	 	 	 << endl ; 
		cout << "The second number has the value of " 
		     << first << " which was the value of the first number. " 
			 << endl ;
	
}

void swapMe(double number1, double number2)
{
	double first, second ;
	
	// Change the value of number1 to number2 
	first = number2 ;
	second = number1 ;
}
