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 Solvers40
Suggested Problems
-
Omit columns averages from a matrix
586 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1099 Solvers
-
556 Solvers
-
Find out value of sine given by degree.
330 Solvers
-
Approximation of Pi (vector inputs)
219 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!