Где ошибка? C++, Нужно найти кол-во нулей в некотором числе.
int main()
{
int q,s=0;
cin >> q;

while (q != 0)
{



if ((q % 10)==0)
{
s++;
}

q = q / 10;

} cout<
return 0;
}
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.