lumpkinh
lumpkinh lumpkinh
  • 03-02-2022
  • Computers and Technology
contestada

Code a program that gets all possible solutions of a string using 3 for loops. Actual question attached

Code a program that gets all possible solutions of a string using 3 for loops Actual question attached class=

Respuesta :

Аноним Аноним
  • 03-02-2022

[tex]\tt x=int(input("Enter\:first\:no:"))[/tex]

[tex]\tt y=int(input("Enter\:second\:no:"))[/tex]

[tex]\tt z=int(input("Enter\:third\:no:"))[/tex]

[tex]\tt for\:x\:in\: range (3):[/tex]

[tex]\quad\tt for\:y\:in\:range(3):[/tex]

[tex]\quad\quad\tt for\:z\:in\:range(3):[/tex]

[tex]\quad\quad\quad\tt if\:x!=y\:and\:y!=z\:and\:z!=x:[/tex]

[tex]\quad\quad\quad\quad\tt print(x,y,z)[/tex]

Answer Link

Otras preguntas

What is the fraction eight twentieths in its simplest form?
Why does the international date line does not follow a straight line
When walking a dog outside, you should leash the dog with a?
What is the tube that moves air from the larynx to the bronchi?
there were some shortfalls in the Enlightenment Era. explain briefly 2 areas of poor thinking in which philosophers faltered or did not excel.
Which organ system's main purpose is to make movement possible?
What was accomplished by members of the Second Continental Congress during their meeting in Philadelphia? a. The United States Constitution was drafted. b. Me
The Congress can override a presidential veto with a _______ majority vote
Which of the following equations are balanced? A: 2H2 + O2 → 2H2O B: 2S + 3O2 → 2SO3 C: Li + Cl2 → LiCl D: 2K + 2H2O → H2 + 2KOH E: 2Fe + Cu(NO3)2 → 2Cu + Fe(NO
Any organization in South Africa that is dealing with corruption and fraud