39
loading...
This website collects cookies to deliver better user experience
1
12
123
1234
12345
for i in range(0,5):
for j in range(0,i+1):
print(j+1,end='')
print()
for a in range(0,100):
print(a,end="-")
IsPrime=0
for i in range (2,a//2):
if (a%i==0):
print("The number is composite ")
IsPrime=1
break
if (IsPrime==0):
print("The number is prime.")
Please enter a character *
Please enter a number 3
*_
*_*_
*_*_*_
*_*_*_
*_*_
*_
Please enter a character o
Please enter a number 4
o
o
oo
o
oo
ooo
o
oo
ooo
oooo
For those who have not yet made account in Dev.to, you can have a free easy sign-up using your mail or GitHub accounts. I would suggest the budding developers to create your GitHub free account right away. You would require to register sooner or later anyways