method that checks if given number (positive integer) contains digit 3 in C#

后端 未结 0 1316
一生所求
一生所求 2020-11-22 12:48

Do not convert number to other type. Do not use built-in functions like Contains(), StartsWith(), etc. while (number > 0) {if (number % 10 == 3) { return true; } n

相关标签:
回答
  • 消灭零回复
提交回复
热议问题