Jovian
⭐️
Sign In
In [24]:
a=int(input("Enter a no"))
e=0
for i in range(1,a+1):
    if(a%i==0):
        c=c+1
if(c==2):
    print("Number is prime")
else:
    print("Number is not prime")
Enter a no45 Number is not prime
In [4]:
for i in range(1,5):
    print(i)
    print(i)
for i in range(1,3):
     print(i)
1 1 2 2 3 3 4 4 1 2
In [6]:
a=int(input("Enter a Number"))
if(a%2==0):
    print("Even")
else:
    print("Odd")
Enter a Number5 Odd
In [26]:
def farin(a,b):
    c=a+b
    return c
no1=int(input("Enter a no"))
no2=int(input("Enter a no"))
v=farin(no1,no2)
print(v)
if(v%2==0):
    print("Number is even")
else:
    print("Number is Odd")
Enter a no34 Enter a no65 99 Number is Odd
In [28]:
import jovian

In [ ]:
jovian.commit()
[jovian] Saving notebook..
In [ ]: