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_comb2(int n) | |
{ | |
for(int i=0;i<Math.Pow(10,n);i++) | |
{ | |
string chara=i.ToString(); | |
while (chara.Length < n) | |
{ | |
chara='0'+chara; | |
} | |
string used = ""; |
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_comb2() | |
{ | |
for(int i=0;i<99;i++) | |
{ | |
for(int a=0;a<100;a++) | |
{ | |
if (i<a) | |
{ | |
string chara1=i.ToString(); |
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) |
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_is_negative(int n) | |
{ | |
if(n <0) | |
{ | |
Console.WriteLine("N"); | |
} | |
else | |
{ | |
Console.WriteLine("P"); | |
} |
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_numbers() | |
{ | |
string ligne=""; | |
for(int i=0;i<10;i++) | |
{ | |
ligne+=i; | |
} | |
Console.WriteLine(ligne); | |
} |
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_reverse_alphabet() | |
{ | |
int count=0; | |
char a = 'z'; | |
string alphabet =""; | |
while(count!=26) | |
{ | |
count++; | |
alphabet+=a; | |
a--; |
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_alphabet_bis_bis() | |
{ | |
string imprimer =""; | |
char[] alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; | |
foreach(char lettre in alphabet) | |
{ | |
imprimer+=lettre; | |
} | |
Console.Write(imprimer); | |
} |
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_alphabet() | |
{ | |
char a = 'a'; | |
string alphabet =""; | |
for(int i=0;i<26;i++) | |
{ | |
alphabet+=a; | |
a++; | |
} | |
Console.Write(alphabet); |
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_alphabet() | |
{ | |
int count=0; | |
char a = 'a'; | |
string alphabet =""; | |
while(count!=26) | |
{ | |
count++; | |
alphabet+=a; | |
a++; |
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_putchar(char c) | |
{ | |
Console.Write(c); | |
} |
NewerOlder