Fahad/MCG-CS/Code/While.kcl
changeset 45 7545b1bc1514
equal deleted inserted replaced
44:a751aa1ee4f7 45:7545b1bc1514
       
     1 var FirstNum = 10;
       
     2 var SecondNum = 5;
       
     3 
       
     4 while FirstNum > SecondNum do
       
     5 	print FirstNum;
       
     6 
       
     7 	FirstNum = FirstNum - 1;
       
     8 endwhile;
       
     9 
       
    10 print "Enter any number to continue";
       
    11 read SecondNum;