public class Kumite { public static bool IsThree(int n) { while(n % 10 != 3 && n > 0) n /= 10; return n > 0; } }
public class Kumite {public static bool IsThree(int n) {while(n%10!=3&&n>0)n/=10;return n>0;}}- public class Kumite
- {
- public static bool IsThree(int n)
- {
- while(n % 10 != 3 && n > 0)
- n /= 10;
- return n > 0;
- }
- }