Okay i can't fix it with the limited knowledge i have... please someone help
Code:#include <iostream> using namespace std; int main() { int number; cout<<"Wecome to the attempted C++ \n Press enter to continue."; cin.get(); cout<<"Choose a number from 1 to 10 and \n you will be rewarded if you guess correctly."; cin>> number; cin.ignore(); if (number)!(1&&2); { cout<<"Try again!"; } else if (number<2); {cout<< "You win ...."; cin.get(); cout<<"Nothing.";} cin.get(); }
errors
E:\Programs\Programing\Programs\Guessing Game.cpp: In function `int main()':
E:\Programs\Programing\Programs\Guessing Game.cpp:18: error: expected primary-expression before "else"
E:\Programs\Programing\Programs\Guessing Game.cpp:18: error: expected `;' before "else"
Execution terminated