Number1 whilenumber 1 printnumber numbernumber 1

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Start Ask first number highest = first number Ask new number TRUE more numbers? FALSE FALSE new > highest? TRUE highest = new number print highest Stop 11 What is the output? first=10 while(first<15): if((first%3) == 0): first=first+2 print(first) elif(first+2 < 15): first=first+1 print(first) else: first=first+1 print(first) 12 4 13 ­09 ­19 What is the output? number=1 while(numb...
View Full Document

Ask a homework question - tutors are online