Fahad/MCG-CS/Code/if-then2.kcl
changeset 45 7545b1bc1514
equal deleted inserted replaced
44:a751aa1ee4f7 45:7545b1bc1514
       
     1 var FirstNum = 25;
       
     2 var SecondNum = 15;
       
     3 
       
     4 
       
     5 
       
     6 if FirstNum > SecondNum then
       
     7 	if FirstNum > 9 then
       
     8 		print "First Number is greater then 9";
       
     9 	else
       
    10 		print "First Number is less then 9";
       
    11 	endif;
       
    12 	print "first number is GREATER than second number";
       
    13 else
       
    14 	print "first number is LESS than second number";
       
    15 endif;
       
    16