Friday, February 1, 2019

Multiplication Table 1

  • Problem Description

    Write a program to print the multiplication table for the given Number

    Input 1:Positive number

    Output: Multiplication table of the corresponding number

    Refer sample input and output for formatting specification.
  • CODING ARENA
  • a=int(input())
    for i in range(1,a):
        print(a,"*",i,"=",a*i)
        
  • Test Case 1

    Input (stdin)
    7
    
    
    Expected Output
    7 * 1 = 7
    
    7 * 2 = 14
    
    7 * 3 = 21
    
    7 * 4 = 28
    
    7 * 5 = 35
    
    7 * 6 = 42
  • Test Case 2

    Input (stdin)
    10
    
    
    Expected Output
    10 * 1 = 10
    
    10 * 2 = 20
    
    10 * 3 = 30
    
    10 * 4 = 40
    
    10 * 5 = 50
    
    10 * 6 = 60
    
    10 * 7 = 70
    
    10 * 8 = 80
    
    10 * 9 = 90

2 comments:

  1. Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. Multiplication chart

    ReplyDelete