I have tried to make a program but it fails when compiled and run. Could someone check it out and tell me what's wrong.
My intention is to enter any number which is over 5 so i get the message hi..Code:#include <iostream> using namespace std; int main() { int thisisanumber; cin>> thisisanumber; cin.ingnore(); if ( thisisanumber > 5 ) { cout<<"hi"; } cin.get(); return 0; }