Jump to content

gulshan212

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Haldwani, Uttarakhand
  • Interests
    Playing Cricket and Vollyball

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

gulshan212's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Ok, will keep these point in mind for future reference. Thanks a lot for your kind response.
  2. Sorry for inconvince but I think it is a good platform and I suppose that here any expert can reply its answer therefore I ask my query. Thanks
  3. Hello this is Gulshan Negi Well, I am writing a program for finding sum of natural numbers but it shows some error at the time of execution. Source Code: n = int(input("Enter the number:" )) sum=0 if n > 1: for i in range(1,n+1): sum+=i: print("The sum of all natural number upto",n,"is ",sum) else: print("Please Enter a value greater than 1") I also checked and took teference from here, but i don't know what I am missing here. Can anyone give their suggestions on this. Thanks
×
×
  • Create New...