annitaz -5 Light Poster

Write a program in PC assembly language to execute the following code:
b := 0;
a := 0;
read c (c must be between 5 and 9)
while ( (a+b) < c ) do
begin
b := b+a;
a := a+1;
end;

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.