C++ LANGUAGE PROGRAMMING

Q1. Write a program to print a string on the screen.

Q2. Write a program to show the use of ‘char’ data type.

Q3. Write a program to print the sum of two numbers.

Q4. Write a program to read two values from user and print there sum.

Q5. Write a program to input two values and print their addition, subtraction, multiplication and division.

Q6. Write a program to show the use of chain assignment.

Q7. Write a program to show the use logical operator.

Q8. Write a program to show the use of addition C++ shorthand operator.

Q9. Write a program to show the use of subtraction C++ shorthand operator.

Q10. Write a program to show the use of multiply C++ shorthand operator.

Q11. Write a program to show the use of division C++ shorthand operator.

Q12. Write a program to show the use of modulus C++ shorthand operator.

Q13. Write a program to make use of ternary operator/conditional operator.

Q14. Write a program to make use of ternary operator/conditional operator.

Q15. Write a program to take input in three subjects Physics, Chemistry and Math’s and calculate the total and percentage.

Q16. Write a program to input users age and display a message you can vote or cannot vote.

Q17. Write a program to accept a character and determine whether it’s upper case or lower case.

Q18. Write a program to accept a character and determine whether its number, alphabet or symbol.

Q19. Write a program to accept a number and determine whether it is even or odd.

Q20. Write a program to accept a number and if it is less than 10 then print its square value.

Q21. Write a program to accept a number and if it is less than 50 and greater than 20 than print its square value.

Q22. Write a program to accept percentage and print division accordingly.