Generation

regexSun, 11 Jun 2023

Read 5 times 3 numbers and print them in ascending order The numbers are read on 3 variables A, B, C, printing them in the corresponding order

A = int(raw_input("Enter first integer: ")) B = int(raw_input("Enter second integer: ")) C = int(raw_input("Enter third integer: ")) if A>B and A>C: if B>C: print C, B, A else: print B, C, A elif B>A and B>C: if A>C: print C, A, B else: print A, C, B else: if A>B: print B, A, C else: print A, B, C

Questions about programming?Chat with your personal AI assistant