ek loop chlaoo 556 se jo 7 se devied ho jaye

1st question

a=556
while a<=656:
    n=a-556
    if a%7==0:
        print(a)
    a=a+1



  ek loop chlaao jo @,#,$,&,* print kre jinte line ho utne he hone chaheye.

    2nd solution

i = 1 
while i <= 7: 
  print('@'*i)
  i = i + 1




ek loop chlaao 100 tak jo 3 se devied ho 7 se devied ho
toh print kre.

     2ndd question

a=1
while a<=100:
    if a%3==0 and a%7==0:
        print("nuvgurukul")
    elif a%3==0:
        print("nav")
    elif a%7==0:
        print("gurukul")
    else:
        print(a)
    a=a+1



ek loop chlaoo jo 10 bar input le 50 se suru hona chahye.

  3th question.

a=50
sum=1
while a<=60:
    n=int(input("enter the no."))
    sum=sum+n
    a=a+1
    print(sum)



156 se 10 bar takk loop chlaoo or 10 takk print kro

      4th question

a=156
while a<=166:
    a=a+1
    print(a)    


   6th question prime no.


n=int(input("enter the no."))
a=2
while a<n:   
        if n%a==0:
            print(n,"not prime no.")
            break
        a=a+1
else: 
    print(n," prime no. ")


   5th question 

    jine input le utna bar user input mage or sabka sum print kre.

a=int(input("enter no."))
n=0
while a!=0:
    i=int(input("enter the no."))
    n=n+i
    a-=1
    print(n)





a=1
sum=0
while a<5:
    if a>=1:
        print(a,-1)
    else:
        print("wrong")


   loop chlaoo or naaam print karaoo binaaa ruke #

a="ak"
while a!=1:
    print(a)





