Fahad/MCG-CS/Code/if-then.kcl
author Christian Urban <urbanc@in.tum.de>
Fri, 17 Mar 2017 19:47:42 +0000
changeset 238 2dc1647eab9e
parent 45 7545b1bc1514
permissions -rw-r--r--
added AND-regular expression (intersection/conjunction)

var FirstNum = 0;
var SecondNum = 0;

print "enter first number";
read FirstNum;

print "enter second number";
read SecondNum;

if FirstNum > SecondNum then
	if FirstNum > 9 then
		print "First Number is greater then 9";
	else
		print "First Number is less then 9";
	endif;
	print "first number is GREATER than second number";
else
	print "first number is LESS than second number";
endif;

var z = 0;
print "enter any number to continue";
read z;