Skip to content

Instantly share code, notes, and snippets.

@Titory0
Last active January 16, 2023 14:34
Show Gist options
  • Save Titory0/5db1a9a281414ea5f3fb675b69fc4605 to your computer and use it in GitHub Desktop.
Save Titory0/5db1a9a281414ea5f3fb675b69fc4605 to your computer and use it in GitHub Desktop.
public static void ft_print_comb()
{
for(int i=0;i<1000;i++)
{
string chara=i.ToString();
if (chara.Length ==1)
{
chara="00"+chara;
}
if (chara.Length ==2)
{
chara="0"+chara;
}
if ((chara[0]!=chara[1] && chara[0]!=chara[2] && chara[1]!=chara[2])&& (chara[0]<chara[1] && chara[1]<chara[2]))
{
chara= " "+chara+" ;";
Console.Write(chara);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment