Hello. I am working at a vending machine software. I cannot get the if statement to work. It just simply ignores it : // Program.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>	

using namespace std;

int main()

{
	char number; 
	cout << "Hello. Please choose a drink type ! \n\n1.Coca-Cola \n2.Coca-Cola ZERO \n3.Pepsi\n" ;
	cin >> number;


	if (number == 1)
		cout << "Please tip in 8$";

}