Skip to main content

TCS

TCS OA-25 2024

Problem Description

Given an integer n, you are required to calculate the sum of the first 10 values in the multiplication table of n.

Specifically, you need to compute: n×1+n×2+⋯+n×10 

Input Format

The first line contains an integer n.

Output Format

An integer representing the sum of the first 10 values in the multiplication table of n.

Constraints

  • 1 ≤ N ≤ 100

Example

Sample Input:

5

Sample Output:

275

Explanation:

  • The first 10 values in the multiplication table of 5 are: 5×1,5×2,…,5×10.
  • Calculating each term: 5+10+15+20+25+30+35+40+45+50=275.