Quantcast
Channel: Print a bunch of uninteresting numbers! - Code Golf Stack Exchange
Viewing all articles
Browse latest Browse all 87

Print a bunch of uninteresting numbers!

$
0
0

An uninteresting number (which I totally didn't make up only for this challenge) is created like this:

  1. Take a positive integer N
  2. Create a new number O by adding the digits of N at the end of N
  3. The final uninteresting number is O*N

For example for N=12:

  1. O = 1212
  2. O*N = 1212 * 12
  3. Final number is 14544

Input

A positive integer N (N > 0) or your language's equivalent. You don't have to catch incorrect input.

Output

The corresponding uninteresting number.

Test cases

  1 -> 11  2 -> 44  3 -> 99 10 -> 10100174 -> 30306276

Scoring

Shortest Code in Bytes wins.


Viewing all articles
Browse latest Browse all 87

Latest Images

Trending Articles





Latest Images