- Joined
- Aug 1, 2023
- Messages
- 4
- Reaction score
- 0
Dear friend, I created a program in my college to guess your number by binary system first number displayed 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31 is your number in the above list ask if yes first number here 1 add if no 1 is not added second 2,3,6,7,10,11,14,15,18,19,22,23,26,27,30,31 then again ask is your number in the above list ask if yes first number here 2 add if no 2 is not added third time again 4,5,6,7,12,13,14,15,20,21,22,23,28,29,30,31 then again ask is your number in the above list ask if yes first number here 4 add if no 4 is not added fourth time 8,9,10,11,12,13,14,15,24,25,26,27,28,29,30,31 then again ask is your number in the above list ask if yes first number here 8 add if no 8 is not added and last time means fifth time on-screen display 16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 then again ask is your number in the above list ask if yes first number here 16 add if no 16 is not added
this program is based on the binary unit base which I created in 2005 in college time by using only if function and loop function even I ask for chatgpt and google bard but code is not working can anyone help me to creating this code
this program is based on the binary unit base which I created in 2005 in college time by using only if function and loop function even I ask for chatgpt and google bard but code is not working can anyone help me to creating this code