Problem 57482. JannaT is Loved By Me
JannaT was sTarTed loved by me and that time was in 2020.
A year when JannaT will starT loving me when the year divided from the middle is same.
An example: 2020 is the sTarTed loving year because 20 20 can be divided into two parts where 20=20 and so it is the Love sTarTed year.
Otherwise the year is ContinousLy loving year.
An example: 2022 is 20 22 where 20 is not equal 22 and so it the ContinuousLy Loving year.
You are given an year (1000 to 9999) and you have to determine wheather it is a Love sTarTed year or a ContinousLy Loving year.
Note: Use the template code for ans string.
Sample Input : 2121
Sample Output : Love sTarTed year
Sample Input : 2023
Sample Output : ContinousLy Loving year
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers38
Suggested Problems
-
26808 Solvers
-
Reverse the elements of an array
1008 Solvers
-
286 Solvers
-
684 Solvers
-
886 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!