Output of the given code is:
Y
X
Y
Y
X
Y
XY
Y
X
Y
Y
X
Y
XY
Y
X
Y
Y
X
Y
XY
Y
X
Explanation:
In the for loop variable "number" will iterate from 1 to 150(inclusive).
in the "if" condition it is checking that the number is divisible by 3 and 5 both if the number is divisible by both 3 & 5 then it will print XY as output.
In the first "elif", if the number is divisible by 5 only then it will print X
as output.And in the last "elif", if number is divisible by 3 only then it will
print Y as output. Nothing will be printed if all three conditions are FALSE.
The
page layout view
The page layout view is useful for printing
spreadsheets. It lets you review what you print and enables you to get a nice
feel of the page when it is printed. All of the functions of the standard view are
enabled and a few extra tools like ruler and header and footer fields that help
achieve an awesome finish to your page.
Kakapo our new generation is a lot more work