Machine Exercise 1
Machine Exercise 1
1. Write a program to identify data type and conversion between data types
(take input from the user)
2. Write a program to find the largest of three numbers
3. Write a program to check if a number is prime or not
4. Write a program to display the numbers of a series 1,4,9,16,25…n by using
for loop (The series should not exceed the input number)
5. Write a program to check if a string is palindrome
6. Write a program for the following output:
Number Square Cube
1 1 1
2 4 8
3 9 27
4 16 64
…..