Why its giving error when am using if else.. with only if it working fine. error is illegal else without if.
[code]
void glist(int num[10])
{
cout<<"Number greater then 50 are:"<<endl;
for(int i=0; i<10; i++)
{
if(num[i]>50)
{
cout<<num[i]<<endl;
else
cout<<"Not found"<<endl;
}
}
}