Robotics & Artificial Intelligence
Write a program to input a number and display the new number after reversing the digits.
Sample Input: 467
Sample Output: 764
Related Questions
Write a program to input 10 different numbers. Display the greatest and the smallest numbers among them.
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.
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 = 50Write a Python code to accept any 20 numbers and display only those numbers which are prime.
[Hint: A number is said to be prime, if it is divisible by 1 and the number itself.]