Вы находитесь на странице: 1из 1

1.

Write a program to check whether a given number is leap year or


not.
2. Write a program to shift 2 bits of an operand towards left hand
side.
3. Write a program to check whether a given character is vowel or
not.
4. Write a program to print sum of the first n natural numbers.(
Method1,Method2)
5. Write a program to print sum of first and last digits of a given
number.
6. Write a program to print reverse of a given value.
7. Write a program to check whether a given number is prime number
or not.
8. Write a program to print all prime numbers in between the given
range.
9. Write a program to print the pyramid of digits format as
1
1 2
1 2 3
1 2 3 4

10. Write a program to print the pyramid of digits format as


1
2 2
3 3 3
4 4 4 4

Вам также может понравиться