Skip to content

MaheesaShafrin/Python-75

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Python-75

Python program to find the odd numbers in an array numbers = [8, 3, 1, 6, 2, 4, 5, 9] count = 0

for i in range(len(numbers)): if numbers[i] % 2 != 0: count = count + 1

print("The number of odd numbers in the list are:", count)

Output:

The number of odd numbers in the list are: 4

About

Python program to find the odd numbers in an array

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published