You are on page 1of 1

Name: Wayne Hans Camacho IT150-8

FOPI01

ASS 1.3

Create a Marie Program that will do the following:

1. Sum = (A + B) - (C + D).

2. Prod = X2 wherein x is positive

3. Prod = xy wherein y is positive

Answer:

Load x/load value of variable x to AC

and y/add value of y to AC (A+B)

and (C+D)

Subt Z/Subtract z from AC (A+B) – (C+D)

Store result/Store value of (A+B)-(C+D) to Variable result.

Output

Half

x, dec x2 / declare variable is positive.

Y, dec xy / declare variable is positive.

Result, dec 0 / declare variable result.

You might also like