Python Multiplication

Description

Python program to get two integer numbers, multiply both the integers and dispaly the product.
Sample Input 1:
5
6
Sample Output 1:
30
Input2:
65 
10
Output2:
650

Solution

num1=int(input("Enter First number:"))
num2=int(input("Enter second number:"))
product=num1*num2
print(product)

We are Teaching "Web Development using Python" through Online.

View Tutor Profile and Course Syllabus

Explanation

Read two inputs using input() method.
Conver it into integer by int() method.
Multiply it using * operator
Ramesh P Natarajan

Author - Ramesh P Natarajan

Software Developer and Technology Trainer, very much passionate in the field of Software Application Development, Machine Learning and Search Engine Optimization.

Write to: [email protected]





Interesting Pattern Programs: for more Patterns

Input:
5
Output:
*
**
***
****
*****
****
***
**
*Solution
Input:
5
Output:
    *
   ***
  *****
 *******
*********
 *******
  *****
   ***
    *Solution
Input:
5
Output:
*        *
**      **
***    ***
****  ****
**********Solution
Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********Solution
Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********
**** ****
***   ***
**     **
*       *Solution
Input:
5
Output:
*********
 *******
  *****
   ***
    *
   ***
  *****
 *******
*********Solution