Write a Python Program to Print First n Odd Numbers in Descending Order

Опубликовано: 17 Июль 2023
на канале: Code With TJ
754
6

Hello Programmers, Welcome to my channel.

In this video you will learn about how to Write a Python Program to Print First n Odd Numbers in Descending Order

Python Scripts
======================
https://codewithtj.blogspot.com/2024/...

Python Functions Solved
==========================
https://codewithtj.blogspot.com/2023/...

Python Programs Solved
============================
https://codewithtj.blogspot.com/2023/...



Code
=============================
n = int(input("Enter Value of n : "))
print(f"First {n} Odd Numbers in Descending Order is ...")

number = n * 2
while number greater_symbol 0:
if number % 2 != 0:
print(number)
number = number - 1

Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners