Fahad/MCG-CS/Code/if-then.kcl
changeset 45 7545b1bc1514
equal deleted inserted replaced
44:a751aa1ee4f7 45:7545b1bc1514
       
     1 var FirstNum = 0;
       
     2 var SecondNum = 0;
       
     3 
       
     4 print "enter first number";
       
     5 read FirstNum;
       
     6 
       
     7 print "enter second number";
       
     8 read SecondNum;
       
     9 
       
    10 if FirstNum > SecondNum then
       
    11 	if FirstNum > 9 then
       
    12 		print "First Number is greater then 9";
       
    13 	else
       
    14 		print "First Number is less then 9";
       
    15 	endif;
       
    16 	print "first number is GREATER than second number";
       
    17 else
       
    18 	print "first number is LESS than second number";
       
    19 endif;
       
    20 
       
    21 var z = 0;
       
    22 print "enter any number to continue";
       
    23 read z;