{"id":20372,"date":"2021-09-11T15:38:02","date_gmt":"2021-09-11T10:08:02","guid":{"rendered":"https:\/\/python-programs.com\/?p=20372"},"modified":"2021-11-22T18:36:22","modified_gmt":"2021-11-22T13:06:22","slug":"python-program-to-multiply-two-numbers-without-using-multiplication-operator","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-multiply-two-numbers-without-using-multiplication-operator\/","title":{"rendered":"Python Program to Multiply Two Numbers Without Using Multiplication(*) Operator"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Swap Two Numbers using Bitwise Operators<\/a><\/p>\n

Given two numbers and the task is to multiply the given two numbers without using multiplication(*) Operator<\/p>\n

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

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

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

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

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

The multiplication of given two numbers{ 3 * 6 } =  18<\/pre>\n

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

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

Given First Number =  15\r\nGiven Second Number = 4<\/pre>\n

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

The multiplication of given two numbers{ 15 * 4 } =  60<\/pre>\n

Program to Multiply Two Numbers Without Using Multiplication(*) Operator in Python<\/h2>\n

Below are the ways to multiply the given two numbers without using multiplication(*) Operator in Python:<\/p>\n