SarthakKeshari / Java-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
47 stars 98 forks source link

Perfect Square #434

Closed satyam878 closed 3 years ago

satyam878 commented 3 years ago

Issue Id you have worked upon -

433

Briefly explain your program logic -

Just simply used a for loop and kept checking whether the square is less than or equal to the number and adding the result every time to the array and returning the last index value of array

Screenshots(Attach 2 screenshots of your own input and output) -

image image


Checklist:

Eg - If your code follow the below guidelines. Kindly change [] to [x]

All the conditions should be fulfilled for considering your code for merging -

satyam878 commented 3 years ago

Kindly Accept the pull request @SarthakKeshari