Computer Science, asked by saqlain111, 10 months ago

wap to accept two numbers A and B 10 times. print the sum of a and b. if a or b is negative terminate the loop​

Answers

Answered by sarita1974lko
0

Answer:

for i in range(10):

a=int(input('enter a number: '))

b=int(input('enter another number: '))

if a<0 or b<0:

print('numbers are negative')

break

else:

print('sum is ',a+b)

Similar questions