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

The statement, "right angles measure 90 degrees," is an example of: A postulate A definition A theorem A conjecture
find a common solution for each system of equations: y=3x+5 y=-5x-3
A movie starts at 7:00 pm and lasts 108 minutes. What time does the movie end?
Describe a pattern in the sequence of numbers. Predict the next number. 1) 1, 2, 6, 24, ___ 2) 0, 3, 8, 15, 24, ___
graph y=3sinx and y=sin 3x on the same axes. label the graph of each function.
How many flags are in this wolld ;)
Please answer:If a stadium holds 60000 people.1. If the stadium is 2/3 full, how many people are there?2. If the stadium is 3/4 full, how many people are there?
State whether the following statements are true or false. Justify.(i) For an arbitrary binary operation * on a set N,  a * a = a ,  for all a * N.(ii) If * is a
Earth is a close approximation of a natural closed system.  What are some ways that living in a closed system affects each of us.
simplify (1/x) + (1/(x+h)