X2 and X1 > X3 then m= X14- If X2 > X1 and X2 > X3 then m= X23- If X1 > X2 and X1 > X3 then m1= X14- If X2 > X1 and X2 > X3 then m2= X25- If X3 > X1 and X3 > X2 then m3= X35- If X3 > X1 and X3 >...


Write an algorithm to find the maximum of three values<br>S 30<br>1-Start<br>1-Start<br>2-Read X1,X2,X3<br>2-Read X1,X2,X3<br>3- If X1 > X2 and X1 > X3 then m= X1<br>4- If X2 > X1 and X2 > X3 then m= X2<br>3- If X1 > X2 and X1 > X3 then m1= X1<br>4- If X2 > X1 and X2 > X3 then m2= X2<br>5- If X3 > X1 and X3 > X2 then m3= X3<br>5- If X3 > X1 and X3 > X2 then m= X3<br>6-print m<br>6-print m<br>7-end<br>7-end<br>the sol is O<br>The sol is O<br>1-Start<br>1-Start<br>2-Read X1,X2,X3<br>2-Read X1,X2,X3<br>3- If X1 > X2 and X1 > X3 then goto step6<br>3- If X1 > X2 and x1 > X3 then m= X1<br>4- If X2 > X1 and X2 > X3 then goto step6<br>4- If X2 > X1 and X2 > X3 then m= X1<br>5- If X3 > X1 and X3 > X2 then goto step6<br>5- If X3 > X1 and X3 > X2 then m= X3<br>6-printX<br>6-print m<br>7-end<br>7-end<br>

Extracted text: Write an algorithm to find the maximum of three values S 30 1-Start 1-Start 2-Read X1,X2,X3 2-Read X1,X2,X3 3- If X1 > X2 and X1 > X3 then m= X1 4- If X2 > X1 and X2 > X3 then m= X2 3- If X1 > X2 and X1 > X3 then m1= X1 4- If X2 > X1 and X2 > X3 then m2= X2 5- If X3 > X1 and X3 > X2 then m3= X3 5- If X3 > X1 and X3 > X2 then m= X3 6-print m 6-print m 7-end 7-end the sol is O The sol is O 1-Start 1-Start 2-Read X1,X2,X3 2-Read X1,X2,X3 3- If X1 > X2 and X1 > X3 then goto step6 3- If X1 > X2 and x1 > X3 then m= X1 4- If X2 > X1 and X2 > X3 then goto step6 4- If X2 > X1 and X2 > X3 then m= X1 5- If X3 > X1 and X3 > X2 then goto step6 5- If X3 > X1 and X3 > X2 then m= X3 6-printX 6-print m 7-end 7-end

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here