mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 15:43:16 +02:00
Add simple user interface
This commit is contained in:
parent
e223357afe
commit
50d85f2007
@ -41,7 +41,7 @@ def print_sieve(num: int) -> None:
|
||||
|
||||
# Driver code
|
||||
if __name__ == '__main__':
|
||||
num = 3000
|
||||
num = int(input("Enter a number: "))
|
||||
print("Following are the prime numbers smaller"),
|
||||
print("than or equal to", num)
|
||||
print_sieve(num)
|
||||
Loading…
Reference in New Issue
Block a user