From 55fc7eb3bba83f4084b2f897c61d0280a5f9c097 Mon Sep 17 00:00:00 2001 From: angeld55 Date: Sat, 2 Oct 2021 17:44:35 +0300 Subject: new --- Sem. 13/task1.cpp | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 Sem. 13/task1.cpp (limited to 'Sem. 13/task1.cpp') diff --git a/Sem. 13/task1.cpp b/Sem. 13/task1.cpp deleted file mode 100644 index bd2ce93..0000000 --- a/Sem. 13/task1.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include -using namespace std; - -unsigned fact(unsigned n) -{ - if (n == 0) - return 1; - - return n * fact(n - 1); -} - -int main() -{ - cout << fact(5); -} \ No newline at end of file -- cgit v1.3.1-23-gd82d