Write a program whose inputs are three integers, and whose output is the smallest of the three values. Ex: If the input is: 7 15 3 the output is: 3 I have most of the solution. I cannot figure out the...


Write a program whose inputs are three integers, and whose output is the smallest of the three values.


Ex: If the input is:


7 15 3


the output is:


3



I have most of the solution. I cannot figure out the answer if I input :


7 7 7..


My solution shows no output but the expected output is supposed to be a single 7


main.py<br>Load default template...<br>1 a=int(input();<br>2 b=int(input();<br>3 c=int(input();<br>#Input the value of a<br>#Input the value of b<br>#Input the value of c<br>4<br>5 if(a<b and a<c):<br>print(a);<br>7 elif(b<a and b<c):<br>print(b);<br>9 elif(c<a and c<b):<br>print(c);<br>6.<br>#if a is less than b and c<br>8<br>#if b is less than a and c<br>10<br>#if c is less than a and b<br>Run your program as often as you'd like, before submitting for grading. Below, type any needed<br>input values in the first box, then click Run program and observe the program's output in the<br>Develop mode<br>Submit mode<br>second box.<br>Enter program input (optional)<br>7<br>7<br>7<br>main.py<br>(Your program)<br>Run program<br>Input (from above) –<br>Output (shown below)<br>Program output displayed here<br>(Your program produced no output)<br>↑<br>

Extracted text: main.py Load default template... 1 a=int(input(); 2 b=int(input(); 3 c=int(input(); #Input the value of a #Input the value of b #Input the value of c 4 5 if(a
Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here