the code must analyze if it is greater or lesser in age, and throw a result on the screen, but it gives an error.
#include <stdio.h>
using namespace std;
int main ()
{
int edad;
cin >> edad ;
cout << "ingrese su edad: " ;
if (edad >=18)
{
printf << "usted es mayor de edad" << endl;
}
else
{
printf << "usted es menor de edad" << endl;
}
system ("pause");
}