Computer Science, asked by blackbulls, 6 months ago

Write a Python Program to Print Prime numbers from 1 to 100.

Answers

Answered by purvajaiswal520
4

Answer:

Python Program to print Prime Numbers from 1 to 100

We used another For Loop to check whether the number is divisible or not. If true, count incremented, and break statement skip that number.

Next, if statement checks whether the count is zero, and the given number is not equal to 1. If it is true, it prints the number because it is a Prime Number.

hope this helps u....

Similar questions