Home > Back-end >  , the C language to solve
, the C language to solve

Time:12-10

Calculate s=1 + (1 + 2) + (1 + 2 + 3) +... + (1 + 2 + 3 +... The value of + n)

When a certain value of more than 50, the end of the cycle, and the time of the s value of output, will just over 50 at the time that a value and export item number;

If the final item of value does not more than 50, all calculate the accumulative and according to the plan of circulation, will also be the value of the final item and item number together with the output,
  • Related