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 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.