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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started