#P165. 练27.2 布纳特难题
练27.2 布纳特难题
Description
The German "Prince of Mathematics" Gauss solved his teacher Mr. Büttner's challenging problem at the age of 10: calculating the sum of all integers from 1 to 100.
Try writing a program to calculate the sum of 1 + 2 + 3 + 4 + 5.
Input Format
None
Output Format
The sum of 1 + 2 + 3 + 4 + 5.
Sample
None1+2+3+4+5=15