Created
January 31, 2024 06:45
-
-
Save ZribeDev/eaff38c1adcd8ab6ea0dea86ad7ec224 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class C { | |
public static bool NumCheck(int full, int target) { | |
while (full > 0) { | |
if ((full%10) == target) { | |
return true; | |
} | |
full = full / 10; | |
} | |
return false; | |
} | |
public static void Main() { | |
Console.WriteLine(NumCheck(13242234,1)); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 1, | |
"target": "Run", | |
"mode": "Release" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment