I am a beginner of Mathematica, I happened to come across the following exercise which may seem trivial to the experts of this field but is hard for me to do at this level. I have the equation Sin[x]=1/Sqrt[2] where x lies between 0 and 10Pi, I want to find the the roots of this equation which also satisfy Cos[x]=1/Sqrt[2]. I am allowed to use FindRoot, If statement and For loop for the problem. I apologize for the mistake in the original question which I edited by writing 1/Sqrt[2] in place of Zero.
Can I proceed like
For i in the range 0 to 10Pi in increments of 0.1,
FindRoot[Sin[x]=Cos[x],{x,i}] and to check whether this is an actual root, I put it back in equation Sin[x]=Cos[x] using If statement and ask it to print the root for which Sin[x]=Cos[x]?
As I said, I am just learning Mathematica, so please bear with me if you find this improper.


Solve[Sin[x] == 0 && Cos[x] == 0 && 0 < x < 10 Pi, x]. The answer, of course, is the empty set{}. – Mark McClure Mar 07 '17 at 18:18Plot[{ Sin[x], Cos[x] }, {x, 0, 10 Pi} ]. Do you see any points in which they are both zero? – glS Mar 07 '17 at 18:19Solve[{Sin[x] == Cos[x] == 1/Sqrt[2], 0 <= x <= 10 Pi}, x]and get symbolic solutions. – kirma Mar 07 '17 at 19:16