Write a pseudo-code to find the minimum among three given numbers. Assume that the three numbers are always different.
Answers
Answered by
2
Answer:
a, b, c = 5, 7, 10
if(a <= b and a <= c):
print(a, "is the smallest")
elif(b <= a and b <= c):
print(b, "is the smallest")
else:
print(c, "is the smallest")
Answered by
2
The pseudo-code to find the minimum among three given numbers are given below:
Explanation:
Step 1:Declared a three variable a,b,c and initialized some different value into it.
Step 2:Declared a variable Min for storing the minimum value among the three number,
Step 3:check the condition
- if [a<b and a<c] then go to next step
- Min=a
Step 4:if [b<a and b<c] then go to next step
- Min=b.
- if both the two condition which are given above in Step 1 and Step 2 are wrong then go to the step 5
Step 5: Min=c
Step 6:Display Min.
Learn More :
- What is pseudocode?
https://brainly.in/question/2484360
- Pseudocode to find the minimum among three numbers
https://brainly.in/question/11318260
Similar questions