Chap 2 Ques
Chap 2 Ques
Q1: Write a program to accept a character from the user and display whether it is a vowel
or consonant.
Q2: Write a program to count no. of vowels and consonant in given string.
Q3: Write a program to accept number from user and print the table of the number.
Q4: Write a program to enter a number and check if it is a prime number or composite
number.
Q5: Write a program to print prime numbers between given interval.
Q6: Find the sum of digit of a number.
Q7: Write a program to enter a three digit number and check if it is an Armstrong number
or not.
Q8: Write a program to enter number and check if it is a perfect number or not.
Q9: Write a program to compute LCM of two integers.
Q10: Write a program to compute GCD or HCF of two integers.