Demo entry 6691544

UserGroup

   

Submitted by anonymous on Jan 11, 2018 at 10:01
Language: C#. Code size: 169 Bytes.

int[] userGroups = new int[]{1, 2, 3, 4};
int userIndex = lastCharOfDid > '9' ? ((lastCharOfDid - '3') % 4) : lastCharOfDid % 4;
int userGroup = userGroups[userIndex];

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).