Support our Blind Hand Charity by donating at 9818291723. Your contribution has the potential to bring about significant positive change for humanity.

Search This Blog

Thursday, December 14, 2023

NUMBER GUESSER UPTO 100

s=0

n=1

while n!=0:

    print("Think of a number between between 1 to 100","\n")

    print(""" 1, 17, 33, 49, 65, 81, 97

2, 19, 35, 51, 67, 83, 99

5, 21, 37, 53, 69, 85

7, 23, 39, 55, 71, 87

9, 25, 41, 57, 73, 89

11, 27, 43, 59, 75, 91

13, 29, 45, 61, 77, 93

15, 31, 47, 63, 79, 95""","\n")

    r=int(input("If number present enter 1 else 0 = "))

    if r==1:

        s+=1

    print(""" 2, 18, 34, 50, 66, 82, 98

3, 19, 35, 51, 67, 83, 99

6, 22, 38, 54, 70, 86

7, 23, 39, 55, 71, 87

10, 26, 42, 58, 74, 90

11, 27, 43, 59, 75, 91

14, 30, 45, 62, 78, 94

15, 31, 47, 63, 79, 95""","\n")

    r=int(input("If number present enter 1 else 0 = "))

    if r==1:

        s+=2

    print(""" 4, 20, 36, 52, 68, 84, 100

5, 21, 37, 53, 69, 85

6, 22, 38, 54, 70, 86

7, 23, 39, 55, 71, 87

12, 28, 44, 60, 76, 92

13, 29, 45, 61, 77, 93

14, 30, 46, 62, 78, 94

15, 31, 47, 63, 79, 95""","\n")

    r=int(input("If number present enter 1 else 0 = "))

    if r==1:

        s+=4

    print(""" 8, 15, 30, 45, 60, 75, 90

9, 24, 31, 46, 61, 76, 91

10, 25, 40, 47, 62, 77, 92

11, 26, 41, 56, 63, 78, 93

12, 27, 42, 57, 72, 79, 94

13, 28, 43, 58, 73, 88, 95

14, 29, 44, 59, 74, 89""","\n")

    r=int(input("If number present enter 1 else 0 = "))

    if r==1:

        s+=8

    print(""" 16, 23, 30, 53, 60, 83, 90

17, 24, 31, 54, 61, 84, 91

18, 25, 48, 55, 62, 85, 92

19, 26, 49, 56, 63, 86, 93

20, 27, 50, 57, 80, 87, 94

21, 28, 51, 58, 81, 88, 95

22, 29, 52, 59, 82, 89""","\n")

    r=int(input("If number present enter 1 else 0 = "))

    if r==1:

        s+=16

    print(""" 32, 39, 46, 53, 60, 99

33, 40, 47, 54, 61, 100

34, 41, 48, 55, 62

35, 42, 49, 56, 63

36, 43, 50, 57, 96

37, 44, 51, 58, 97

38, 45, 52, 59, 98""","\n")

    r=int(input("If number present enter 1 else 0 = "))

    if r==1:

        s+=32

    print(""" 64, 71, 78, 85, 92, 99

65, 72, 79, 86, 93, 100

66, 73, 80, 87, 94

67, 74, 81, 88, 95

68, 75, 82, 89, 96

69, 76, 83, 90, 97

70, 77, 84, 91, 98""","\n")

    r=int(input("If number present enter 1 else 0 = "))

    if r==1:

        s+=64

    print("The number guessed =",s)

    if s==0:

        print("Thought of a number beyond 100")

    n=int(input("Enter 1 to continue and 0 to exit = "))

    s=0

OUTPUT