Computer Science, asked by williambarnes, 1 year ago

import randint
int(sum=0
roll=random.randint(1,6)
(rollAgain="A"

while(sum!=50 and rollAgain=="A")

if(sum!=50 and rollAgain=="A")

sum=sum+roll

print(sum)

rollAgain+input("Roll again? A for yes B for no")

roll+random.randint(1,6)

else:

print(Buster

Answers

Answered by omegads03
0

import randint

int(sum=0

roll=random.randint(1,6)

(rollAgain="A"

while(sum!=50 and rollAgain=="A")

if(sum!=50 and rollAgain=="A")

sum=sum+roll

print(sum)

rollAgain+input("Roll again? A for yes B for no")

roll+random.randint(1,6)

else:

print(Buster

The output is 7

Similar questions