The rotation doesnt work at y axis

"yaratılanobje.transform.eulerAngles = new Vector3(10, 0, 0); " I wrote this code the x axis working z axis working but the y axis randomly assign a number Why is this happen?
I tried “transform.rotation = quaternion.euler.”

I’ve had this error before, you could try to add f at the end of each integer; the variable float is more efficient. for example: transform.rotation = new Vector3(10f, 0f, 0f);