till

CF

Perfect Squares – Till N

Given a positive integer N as the input, print all the perfect squares till N (inclusive of N). Input Format:The first line contains N. Output…