Advertisement
V-blk

Untitled

Jan 17th, 2025
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. //Usage: Parse(10111);
  2. public void Parse(int num)
  3. {
  4.     for (int i = 1; i < 6; i++)
  5.     {
  6.         var rem = num % 2;
  7.         num = (num - rem) / 10;
  8.         if (i == 1 && rem == 1) { } //visa or mc
  9.         if (i == 2 && rem == 1) { } //online or offline
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement