Last active
January 16, 2023 14:34
-
-
Save Titory0/5db1a9a281414ea5f3fb675b69fc4605 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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