kargarf / codelitiy_01

Add 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

codelitiy_01

Write a function solution that, given an integer N, return the maximum possible value obtained by inserting '5' digit inside the decimal representation of integer N. Example:

  1. Given N = 268 function return 5268
  2. Given N = 670 function return 6750
  3. Given N = 0 function return 50
  4. Given N = -999 function return -5999 Assume that;
    • N is an integer within the range [-8000, 8000].

About

Add 5


Languages

Language:C# 100.0%