Draw flowchart, pseudo code and scratch algorithm to compare between 3 numbers and print the largest number
- برمجة
- خوارزميات
- سكراتش
- 2021-04-21
- daafoor
الأجوبة
psuedo code (written algorithm ):
start
1) input x,y,z
2) if x>y then go to step 3, else go to step 5
3) if x>z then print "the largest number is "+x and go to end, otherwise then go to step 4
4) print "the largest number is "+z and go to end
5) if y>z then go to step 4, otherwise then print "the largest number is "+y
end
Scratch algorithm:
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
معلومات ذات صلة