#sum of natural number till n. n=int(input('no. :')) gross=0 no=0 while no < n: no+=1 gross+=no print('no.', no ,'sum of n', gross) print('no.',n,'total',gross)