def solve(sum):
    n = round(sum ** 0.5 - 0.5) + 1;
    
    print ('Number of numbers added: ', n);
    print ('Last number:             ', 2 * n - 1)
    print ('Sum of numbers:          ', n * n)
    
solve(100)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: