Beginner needs some guidence C : I'm trying to make a code where a user chooses a number(lets call it A) and then it checks whether if A divided by i * i leaves any remainder, if it doesn't it must display just i number, u get this i number from loops. i'm getting an error saying that the number cant be divided by zero and i can't find out where that zero is coming from.

i have tried doing somethings with the code but ended up with the same error or totally wrong numbers

this is my code: http://pastebin.com/dzTKeavF

