X 0 while x 10 x 1. Conditional variable c++. while x что значит. while (x != 0) { ans += x % 10 x /= 10 } что это.