changeset 45 | 7545b1bc1514 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Fahad/MCG-CS/Code/While.kcl Wed Nov 12 12:24:26 2014 +0000 @@ -0,0 +1,11 @@ +var FirstNum = 10; +var SecondNum = 5; + +while FirstNum > SecondNum do + print FirstNum; + + FirstNum = FirstNum - 1; +endwhile; + +print "Enter any number to continue"; +read SecondNum; \ No newline at end of file