Fix 2022 misidentified day0

This commit is contained in:
2025-04-05 18:35:34 +03:00
parent 9fc1289f42
commit f3624767fd
50 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1 @@
4

View File

@@ -0,0 +1 @@
24

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.

View File

@@ -0,0 +1,2 @@
5

View File

@@ -0,0 +1 @@
120

View File

@@ -0,0 +1,2 @@
7

View File

@@ -0,0 +1 @@
5040

View File

@@ -0,0 +1 @@
8

View File

@@ -0,0 +1 @@
40320

View File

@@ -0,0 +1 @@
6

View File

@@ -0,0 +1 @@
720

View File

@@ -0,0 +1,3 @@
12

View File

@@ -0,0 +1 @@
479001600