{"id":20266,"date":"2021-09-09T19:57:37","date_gmt":"2021-09-09T14:27:37","guid":{"rendered":"https:\/\/python-programs.com\/?p=20266"},"modified":"2021-11-22T18:36:24","modified_gmt":"2021-11-22T13:06:24","slug":"python-program-to-multiply-two-numbers-using-recursion","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-multiply-two-numbers-using-recursion\/","title":{"rendered":"Python Program to Multiply Two Numbers Using Recursion"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Find Subtraction of Two Numbers using Recursion<\/a><\/p>\n

Given two numbers and the task is to find the multiplication of the given two numbers using recursion.<\/p>\n

Recursion:<\/strong><\/p>\n

Recursion is the process by which a function calls itself directly or indirectly, and the associated function is known as a recursive function. Certain issues can be addressed fairly easily using a recursive approach. Towers of Hanoi (TOH), Inorder \/Preorder\/Postorder Tree Traversals, DFS of Graph, and other analogous issues are examples.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given First Number      =  3\r\nGiven Second Number =  5<\/pre>\n

Output:<\/strong><\/p>\n

The Multiplication of { 3 * 5 } using recursion = 15<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given First Number      = 6\r\nGiven Second Number = 9<\/pre>\n

Output:<\/strong><\/p>\n

The Multiplication of { 6 * 9 } using recursion = 54<\/pre>\n

Program to Multiply Two Numbers Using Recursion\u00a0in Python<\/h2>\n

Below are the ways to find the multiplication of the given two numbers using recursion :<\/p>\n