Robotics & Artificial Intelligence
Write a program to input a number. Check and display whether it is a Niven Number or not. (A number is said to be Niven when it is divisible by the sum of its digits).
Sample Input: 126
Sum of its digits = 1 + 2 + 6 = 9 and 126 is divisible by 9.
Related Questions
Write a Python code to check and display whether a number input by the user is a composite number or not.
[A number is said to composite, if it has one or more factors excluding 1 and the number itself. For example: 4, 6, 8, 9, ……………]
Write a program to input 10 different numbers. Display the greatest and the smallest numbers among them.
Write a program to input a number and display the new number after reversing the digits.
Sample Input: 467
Sample Output: 764
Write a Python code to display the Mathematical Tables from 5 to 10. Each Mathematical Table should run for 10 iterations as shown in the given format:
Sample Output: Table of 5
5*1 = 5 5*2 = 10 ............... ............... 5*10 = 50