Skip to content

Instantly share code, notes, and snippets.

@Titory0
Created January 16, 2023 13:32
Show Gist options
  • Save Titory0/c8e5afbc6fcfff2e40f50bdf705fbe7c to your computer and use it in GitHub Desktop.
Save Titory0/c8e5afbc6fcfff2e40f50bdf705fbe7c to your computer and use it in GitHub Desktop.
public static void ft_print_comb2()
{
for(int i=0;i<99;i++)
{
for(int a=0;a<100;a++)
{
if (i<a)
{
string chara1=i.ToString();
if(chara1.Length ==1)
{
chara1="0"+chara1;
}
string chara2=a.ToString();
if(chara2.Length ==1)
{
chara2="0"+chara2;
}
string chara= chara1 + " " + chara2 +" ;" ;
Console.Write(chara);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment