Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

1)Write a program to enter a number and check whether it is a prime and

armstrong and find its factorial.


2)Write a program to enter a number and find the sum of its odd and even factors
.
3)Write a program to enter two numbers and check whether they are twin
prime or not.
4)Write a program to generate Armstrong numbers between two ranges.
5)Write a program to enter a number and determine the number of
digits.Form an integer that has the no.of digits as the MSB and the
highest digit as the LSB.
6)Print the pattern
1
2
3
.
321
1
22
333
4444
.upto n terms
1
212
321231
43212341
Print the series
1
21
321
4321
n .321
7)Write a program to enter a number and find out the highest and lowest
digit in that number.
8)Write a program to enter a number ,store the digits in an array, sort
the elements of the array and print the mid-value.

You might also like