Author Topic: Need help on logical operators  (Read 955 times)

Gimena

  • Guest
Need help on logical operators
« on: April 11, 2014, 10:32:31 PM »
Code: [Select]
if (E > J && J =< X)
          E= J MULTIPLY X
if (A > B || X >= E
D = X/5


i wanted to know how to make my first code and my second  all true using logical operators
i just wanted to know how to make and,or all true ?


Code: [Select]

mov e,sval (input(E:))
mov j,sval (input(J:))
mov x,sval (input(J:))

mov eax,e
cmp eax,j
jl end01

mov eax,j
cmp eax,x
jg end01

mul eax,x
mov e,eax
jmp end01


end01
print str$(e)