I just started studying structured programming and I was trying to do a If Else then function but the compiler won't let me compile it?
#include <iostream>
using namespace std;
int main (void)
{
int age;
cout << "Enter your age" << end1;
cin >> age;
if(age > 21)
{
cout << "You can drink." << endl;
}
else
{
cout << "You can't drink." << endl; }
}