Fix 2022 misidentified day0

This commit is contained in:
oleg20111511
2025-04-05 18:35:34 +03:00
parent 9fc1289f42
commit f3624767fd
50 changed files with 0 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
4
+1
View File
@@ -0,0 +1 @@
24
+21
View File
@@ -0,0 +1,21 @@
Program Factorial;
var n, i : integer;
F : longint;
Intrare, Iesire : text;
label 1;
begin
{ Citirea datelor de intrare }
assign(Intrare, 'fact.in');
reset(Intrare);
readln(Intrare, n);
close(Intrare);
{ Calcularea factorialului }
F:=1;
if n=0 then goto 1;
for i:=1 to n do F:=F*i;
1: { Scrierea datelor de iesire }
assign(Iesire, 'fact.out');
rewrite(Iesire);
writeln(Iesire, F);
close(Iesire);
end.
Binary file not shown.
Binary file not shown.
+2
View File
@@ -0,0 +1,2 @@
5
@@ -0,0 +1 @@
120
+2
View File
@@ -0,0 +1,2 @@
7
@@ -0,0 +1 @@
5040
+1
View File
@@ -0,0 +1 @@
8
@@ -0,0 +1 @@
40320
+1
View File
@@ -0,0 +1 @@
6
@@ -0,0 +1 @@
720
+3
View File
@@ -0,0 +1,3 @@
12
@@ -0,0 +1 @@
479001600