Rajesh SinghMar 29, 20201 minPython Program to Check Armstrong NumberArmstrong number is a number that is equal to the sum of cubes of its digits. For example 0, 1, 153, 370, 371 and 407 are the Armstrong...
Rajesh SinghMar 29, 20201 minPython Program to Find the Factorial of a NumberFirst method to find factorial number of given number: n = int(input("Enter a number: ")) fact = 1 if n < 0: print("Factorial does not...
Rajesh SinghMar 29, 20201 minPython Program to Print the Fibonacci sequencePython Program to Print the Fibonacci sequence Using While Loop n = int(input("Enter the number for Fibonacci sequence : ")) a, b = 0, 1...
Rajesh SinghMar 29, 20201 minPython program to print even numbers between 1 to 100.Python program to print even numbers between 1 to 100. Program: for num in range(1,100): if num%2==0: print (num) Output: 2 4 6 8 10 ; ;...