Ad
  • Default User Avatar

    Join concatinates (string that we point as "", use method Enumerable.Repeat it takes string(pair Key) + int(how many times it repeats) and input devided by value in dictionary pair(exnpl: input = 2000/1000 = 2 == MM ).

    Than input we % by pair value because if we don't, it shows in console all keys in every value.
    exmpl: input = 2000
    otput = MM for the first pair
    MMCMCMCM for second
    and lats one will be in "I" for 2000 times

    Sorry for my English.

  • Default User Avatar

    Can you explain that logic inside foreach?