Difference between revisions of "CSC103 Homework 4 solution 2012"
Line 1: | Line 1: | ||
--[[User:Thiebaut|D. Thiebaut]] 09:51, 1 March 2012 (EST) | --[[User:Thiebaut|D. Thiebaut]] 09:51, 1 March 2012 (EST) | ||
---- | ---- | ||
− | + | <onlydft> | |
The solution program is below. It will start by storing 55 in var1 and var2, then will increase var1 by 2 and decrease var2 by 2 until var1 contains 65 and var2 contains 45. The program will then stop. | The solution program is below. It will start by storing 55 in var1 and var2, then will increase var1 by 2 and decrease var2 by 2 until var1 contains 65 and var2 contains 45. The program will then stop. | ||
Line 50: | Line 50: | ||
</pre></code> | </pre></code> | ||
<br /> | <br /> | ||
− | + | </onlydft> | |
<br /> | <br /> | ||