program to print sum of odd numbers upto n

Опубликовано: 23 Июнь 2020
на канале: codetyro
6,335
70

This video explains you how to write a program to calculate the sum of odd numbers up to a number input from the user.

The program has been implemented through both the "for" loop and the "while" loop.

Both the implementations have been explained at length .

link for "for" loop video:    • for loop in Python  

link to video for program to check if a number is odd or even :    • python program to check if a number i...  

link to range function video :    • range function in python  

link to video for program to calculate sum of first 10 natural numbers :    • python program to print the sum of fi...