Skip to content

Instantly share code, notes, and snippets.

@ZribeDev
Created January 31, 2024 06:45
Show Gist options
  • Save ZribeDev/eaff38c1adcd8ab6ea0dea86ad7ec224 to your computer and use it in GitHub Desktop.
Save ZribeDev/eaff38c1adcd8ab6ea0dea86ad7ec224 to your computer and use it in GitHub Desktop.
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));
}
}
{
"version": 1,
"target": "Run",
"mode": "Release"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment