Professional Documents
Culture Documents
GE8151 U1 7 Finding Leap Year
GE8151 U1 7 Finding Leap Year
Algorithm
Rajasekaran S AP/IT
Problem Solving and Python Programming GE8151
Flow Chart
start
read year
False
year % 4 = 0
?
True
year % 100 = 0
?
True
False
False
year % 400 = 0
?
True
Not Leap Year
Leap Year
stop
Rajasekaran S AP/IT
Problem Solving and Python Programming GE8151
Pseudo Code
START
READ year
IF year % 4 is equal to 0
IF year % 100 is equal to 0
IF year % 400 is equal to 0
PRINT “Leap Year”
ELSE
PRINT “Not Leap Year”
END IF
ELSE
PRINT “Leap Year”
END IF
ELSE
PRINT “Not Leap Year”
END IF
STOP
Rajasekaran S AP/IT