Please write a code for below:
Warren has declared and set two int variables named x and y. He wants the code to print "Larger" if x is strictly greater than y, and "Smaller" otherwise. But your code should not print anything unless a boolean flag variable named print is set to true.