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

8x = 7x + 3 Would I combine the 8x and the 7x at all in this equation?
What is 0.25 x ? = 2.16
Jason and Jenny are out on a lunch date. Jason gives Jenny a bouquet that has 4 roses, 3 carnations, and 4 orchids. They decide that Jenny gets to choose their
When looking at why a person chooses to behave a particular way, i will examine what happened in childhood and what kinds of issues the patient is conscious of?
Sensory impulses from the lungs are carried to the respiratory center by the
six sevenths 6/7 of an estate is to be divided among relatives. Of the remaining​ estate, one fifth 1/5 goes to the American Cancer Society. What fraction of
Philip is making a poster that is 36 by 24 inches. He cuts a 5x12 rectangle in the poster. How much of the poster remains uncut?
Solving equations 6x+7=8x–13
Which describes why other peoples most likely moved into Bantu territory?
The cost C (in dollars) of making N watches is represented by C=15n + 85. How many watches are made when the cost is $385?