Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 478 Bytes

s4il3sh.md

File metadata and controls

16 lines (15 loc) · 478 Bytes

5 things I would like to learn this semester -

  • python
  • c++
  • solve numerical problems using python or c++
  • properly use github
  • last but not least ice-skating ;)

This is the code for python that help us to find sum of the first n natural numbers.

print("This program will help you to find the sum of first n number.")
ask = int(input('input the number \n'))
s = 0
for i in range(ask+1):
    s+=i
print("The sum of the first", ask, " number is", s, ".")