How do I do?

(Sum odd number) subt (sum even number)

with marie simulator

my even 0-10

load Ctr
subt One
store Ctr

Loop, load Sum
add Two
add Sum
store Sum

load Ctr
subt One
store Ctr
skipcond 400
jump Loop

load Sum

halt

Sum, DEC 0
One, DEC 1
Two, DEC 2
Ctr, DEC 5
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.