From 5d8bfe95f581d6cca7bec76d5c3d52403a91cbcb Mon Sep 17 00:00:00 2001 From: Vikrant170 Date: Thu, 4 Apr 2024 14:54:36 +0530 Subject: [PATCH] Created the function --- recursioncreation.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/recursioncreation.cpp b/recursioncreation.cpp index 022ef26..7c571db 100644 --- a/recursioncreation.cpp +++ b/recursioncreation.cpp @@ -1,7 +1,7 @@ #include using namespace std; - +int func(int n); //create a recursive funtion of the following logic given in the main function. int main(){ @@ -13,4 +13,13 @@ int main(){ ans = ans * i; } cout<