''' 2.1 wrote a python program to implement the loop
@ author khan shoab akhtar vbakil ahmad khan 
'''

# factorial using loop

num=int(input('enter the number :'))
fact=1
for i in range(1,num+1):
    fact=fact*i
print('factorial of ',num,'is',factpy)
# fibonacci using while loop
num=int(input('entre the number:'))
a=0
b=1
c =a+b
print('fibonaci series till ',num ,':',a,'\t',b,end='')
while(c<=num):
    print("t\",c,end='')
    a=b
    b=c
    c=a+b



 ''''something is happen '''
