#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int i, n;
cout<<"Enter the no. to search between 1 to 50 : ";
cin>>n;
cout<<endl<<"The search begins now : "<<endl;
for(i=1; i<=50; i++)
{
cout<<i<<endl;
if (i == n)
{
cout<<"AT LAST! I ARRIVED THE NUMBER" ;
break ;
}
}
getch();
return 0;
}