#Write a programme to find table of any number 'n'
n=int(input("Enter the number whose table you want:"))
for i in range(1,11):
print(n, 'x', i, '=', n*i)
#Write a programme to reverse digits of a number
n=(input("Enter the number whose digits you want to reverse:"))
rn=""
for digit in n :
rn = digit + rn
#(note-gap is important)
rn = int(rn)
print("Your Reversed number is ", rn)
#Write a programme to print n number of terms in fibonacci series
a=int(input("Enter the number of terms you want in fibonacci series:"))
b=0
c=1
for i in range(a):
print(b, end = " ")
b, c = c, b + c
#Write a programme to print n number of terms in Tribonacci series
a=int(input("Enter the number of terms you want in Tribonacci series:"))
b=0
c=0
d=1
for i in range(a):
print(b, end = " ")
b, c, d = d, c, b + c + d
#Write a Python program to calculate the sum of all even numbers from 1 to n numbers.
n=int(input("Enter no till you want sum :"))
sum=0
for number in range(1, n+1):
if n % 2 == 0 :
sum += n
print("The sum of all even numbers from 1 to", n, "is", sum)