#include<iostream.h>
#include<conio.h>
int main()
{
int i,ans=0;
clrscr();
cout<<"\nChoose one number in your mind from 1 to 63 \n";
cout<<"\n1 3 5 7 9 11 13 15 \n";
cout<<"\n17 19 21 23 25 27 29 31 \n";
cout<<"\n33 35 37 39 41 43 45 47 \n";
cout<<"\n49 51 53 55 57 59 61 63 \n";
cout<<"Write 0 if number in your mind is present or else write 1 if not present\n";
cin>>i;
if(i==0)
{
ans=ans+1;
}
else
{
ans=ans;
}
cout<<"\n2 3 6 7 10 11 14 15 \n";
cout<<"\n18 19 22 23 26 27 30 31 \n";
cout<<"\n34 35 38 39 42 43 46 47 \n";
cout<<"\n50 51 54 55 58 60 62 63 \n";
cout<<"Write 0 if number in your mind is present or else write 1 if not present\n";
cin>>i;
if(i==0)
{
ans=ans+2;
}
else
{ans=ans;}
cout<<"\n4 5 6 7 12 13 14 15 \n";
cout<<"\n20 21 22 23 28 29 30 31 \n";
cout<<"\n36 37 38 39 44 45 46 47 \n";
cout<<"\n52 53 54 55 60 61 62 63 \n";
cout<<"Write 0 if number in your mind is present or else write 1 if not present\n";
cin>>i;
if(i==0)
{
ans=ans+4;
}else
{ans=ans;}
cout<<"\n8 9 10 11 12 13 14 15 \n";
cout<<"\n24 25 26 27 28 29 30 31 \n";
cout<<"\n40 41 42 43 44 45 46 47 \n";
cout<<"\n56 57 58 59 60 61 62 63 \n";
cout<<"Write 0 if number in your mind is present or else write 1 if not present\n";
cin>>i;
if(i==0)
{
ans=ans+8;
}else
{ans=ans;}
cout<<"\n16 17 18 19 20 21 22 23 \n";
cout<<"\n24 25 26 27 28 29 30 31 \n";
cout<<"\n48 49 50 51 52 53 54 55 \n";
cout<<"\n56 57 58 59 60 61 62 63 \n";
cout<<"Write 0 if number in your mind is present or else write 1 if not present\n";
cin>>i;
if(i==0)
{
ans=ans+16;
}else
{ans=ans;}
cout<<"\n32 33 34 35 36 37 38 39 \n";
cout<<"\n40 41 42 43 44 45 46 47 \n";
cout<<"\n48 49 50 51 52 53 54 55 \n";
cout<<"\n56 57 58 59 60 61 62 63 \n";
cout<<"Write 0 if number in your mind is present or else write 1 if not present\n";
cin>>i;
if(i==0)
{
ans=ans+32;
}else
{ans=ans;}
cout<<"The answer in your mind is : ";
cout<<ans;
getch();
return 0;
}
#include<conio.h>
int main()
{
int i,ans=0;
clrscr();
cout<<"\nChoose one number in your mind from 1 to 63 \n";
cout<<"\n1 3 5 7 9 11 13 15 \n";
cout<<"\n17 19 21 23 25 27 29 31 \n";
cout<<"\n33 35 37 39 41 43 45 47 \n";
cout<<"\n49 51 53 55 57 59 61 63 \n";
cout<<"Write 0 if number in your mind is present or else write 1 if not present\n";
cin>>i;
if(i==0)
{
ans=ans+1;
}
else
{
ans=ans;
}
cout<<"\n2 3 6 7 10 11 14 15 \n";
cout<<"\n18 19 22 23 26 27 30 31 \n";
cout<<"\n34 35 38 39 42 43 46 47 \n";
cout<<"\n50 51 54 55 58 60 62 63 \n";
cout<<"Write 0 if number in your mind is present or else write 1 if not present\n";
cin>>i;
if(i==0)
{
ans=ans+2;
}
else
{ans=ans;}
cout<<"\n4 5 6 7 12 13 14 15 \n";
cout<<"\n20 21 22 23 28 29 30 31 \n";
cout<<"\n36 37 38 39 44 45 46 47 \n";
cout<<"\n52 53 54 55 60 61 62 63 \n";
cout<<"Write 0 if number in your mind is present or else write 1 if not present\n";
cin>>i;
if(i==0)
{
ans=ans+4;
}else
{ans=ans;}
cout<<"\n8 9 10 11 12 13 14 15 \n";
cout<<"\n24 25 26 27 28 29 30 31 \n";
cout<<"\n40 41 42 43 44 45 46 47 \n";
cout<<"\n56 57 58 59 60 61 62 63 \n";
cout<<"Write 0 if number in your mind is present or else write 1 if not present\n";
cin>>i;
if(i==0)
{
ans=ans+8;
}else
{ans=ans;}
cout<<"\n16 17 18 19 20 21 22 23 \n";
cout<<"\n24 25 26 27 28 29 30 31 \n";
cout<<"\n48 49 50 51 52 53 54 55 \n";
cout<<"\n56 57 58 59 60 61 62 63 \n";
cout<<"Write 0 if number in your mind is present or else write 1 if not present\n";
cin>>i;
if(i==0)
{
ans=ans+16;
}else
{ans=ans;}
cout<<"\n32 33 34 35 36 37 38 39 \n";
cout<<"\n40 41 42 43 44 45 46 47 \n";
cout<<"\n48 49 50 51 52 53 54 55 \n";
cout<<"\n56 57 58 59 60 61 62 63 \n";
cout<<"Write 0 if number in your mind is present or else write 1 if not present\n";
cin>>i;
if(i==0)
{
ans=ans+32;
}else
{ans=ans;}
cout<<"The answer in your mind is : ";
cout<<ans;
getch();
return 0;
}