Write your question here.
so i have looked this code over and over and i cant find anything wrong with it. is my code::blocks just glitching or am i just missing it?
#include <iostream>
usingnamespace std;
int main()
{
int year;
cout<<"please enter year"<<endl;
cin>>year;
if (year=2015)
{
cout<< "the year is correct"<<endl;
}
else
{
cout<< "the year is not correct"<<endl;
}
return 0;
}