Are the following solutions correct ? Why or why not

Answer:
[tex]\theta = 0, \frac{\pi}{2}, \pi,...[/tex]
Step-by-step explanation:
[tex]sin\theta + cos \theta = 1 \\\\squaring both the sides\\\\sin^{2}\theta + cos^{2}\theta+2 sin\theta cos\theta = 1 \\\\2sin\theta cos\theta = 0 \\\\sin2\theta = 0\\\\2\theta = 0, \pi, 2 \pi,....\\\\\theta = 0, \frac{\pi}{2}, \pi,...[/tex]
This is the correct solution.