Skip to content

Commit 35f296c

Browse files
committed
commit 2
1 parent 5bd4f80 commit 35f296c

12 files changed

+9
-6
lines changed

Fonction/Program.cs

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66

77
int factorielle(int a) {
88
int c = 1;
9-
for(int i = 2; i >= a; i++) {
10-
9+
for (int i = 2; i <= a; i++) {
10+
Console.WriteLine($"i = {i}, c = {c}");
11+
c = c * i;
1112
}
13+
return c;
1214
}
13-
Console.WriteLine(factorielle());
15+
16+
Console.WriteLine(factorielle(8));
512 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
148 Bytes
Binary file not shown.

Fonction/obj/Debug/net8.0/Fonction.AssemblyInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[assembly: System.Reflection.AssemblyCompanyAttribute("Fonction")]
1414
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
1515
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
16-
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+99f1146876a74e40fed279781dd50e96d3f4724f")]
16+
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5bd4f803ceeab3c9d7e213053fb12e85570724a3")]
1717
[assembly: System.Reflection.AssemblyProductAttribute("Fonction")]
1818
[assembly: System.Reflection.AssemblyTitleAttribute("Fonction")]
1919
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
32b01bb4c223c60a019773ffc7bef9df3b96b516bc00ba9c061cf8f22b040a06
1+
7955d2c954b1c25be1c25d10ae0e3265ab52980748c2ef28df068cfcd065644e
512 Bytes
Binary file not shown.
148 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"documents":{"C:\\Users\\ocean\\OneDrive\\Desktop\\IFC\\Dev\\CSharp\\*":"https://raw.githubusercontent.com/oce75ndb/CSharp/99f1146876a74e40fed279781dd50e96d3f4724f/*"}}
1+
{"documents":{"C:\\Users\\ocean\\OneDrive\\Desktop\\IFC\\Dev\\CSharp\\*":"https://raw.githubusercontent.com/oce75ndb/CSharp/5bd4f803ceeab3c9d7e213053fb12e85570724a3/*"}}

Fonction/obj/Debug/net8.0/apphost.exe

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)