Q1. WAP to find out whether number is prime or not?
Q2. WAP to print Digits of a Number
Print Digits of a Number
Note: Given Number is int
input : 12345
Q3. WAP to Rotate a Number.
Q4. WAP to find out the number is Armstrong number or not
Q5. Implement a program to find out whether a number is divisible by the sum of its digits.
Display appropriate messages.
Q6. Seed Number
Implement a program to find out whether a number is a seed of another number.
A number X is said to be a seed of number Y if multiplying X by its every digit equates to Y.
E.g.: 123 is a seed of 738 as 123*1*2*3 = 738
Q7. Lucky Number
Implement a program to check whether a given number is a lucky number.
A lucky number is a number whose sum of squares of every even-positioned digit (starting from the second position) is a multiple of 9.
E.g. - 1623 = 62+32 = 45 is a multiple of 9 and hence is a lucky number.
Q8. Print 1 to N number table.
Q9. Print 1 to N Prime Numbers
Q10. Print 1 to N Armstrong number