Question: Code the following exercises using MARIE.js assembly Exercise #1 - Find a number greater than 3 different numbers Write a code that meets the following

Code the following exercises using MARIE.js assembly

Exercise #1 - Find a number greater than 3 different numbers

Write a code that meets the following conditions

input(A, B, C)

if( A > B && A > C)

output(A)

elseif( B > C)

output(B)

else

output(C)

end

Exercise #2 - Division of 2 numbers

Write a code that displays the result of dividing x / y, assuming that you can destroy the initial contents of x in the process. You must show the positive and integer part of the answer.

input(X, Y)

Z=X/Y

output(Z)

Exercise #3 - While Loop

Write a code that meets the following conditions

input(H)

while H < 10

H = H + 1

output(H)

end

Exercise #4 - Repeat For

Write a code that meets the following conditions

sum = 0

for I = 1 to 10

Sum = Sum + I

end

output(Sum)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!