1 write a program that inputs a five digit integer separates the integer into its in 5347007
1) Write a program that inputs a five-digit integer, separates the integer into its
individual digits and prints the digits separated from one another by tab length.
Hint: Use integer division and modulus operator.
For example, if the user types in 66095, the program should print
6 6 0 9 5
00021
0 0 0 2 1
2) Write a program that calculates the
squares and cubes of the five integers input from the keyboard by the user and prints a
table whose first column has the five integers entered, second column corresponding
squares of the first column and third the cubes. Use tabs to separate the columns
Expected Output:
Enter 1st Integer : 2
Enter 2nd Integer : 4
Enter 3rd Integer : 23
Enter 4th Integer : 34
Enter 5th Integer : 5
Int Sqr Cube
2 4 8
4 16 64
23 529 12167
34 1156 39304
5 25 125