# Programming Problems

1. Write a program to subtract, add, multiply, and divide 2 numbers (calculator program).
2. Write a program to print the ASCII value of a character.
3. Write a program to convert ASCII value to a character.
4. Write a program to convert a character from lower case to upper case and from upper case to lower case.
5. Write a program to calculate the percentage of marks of 5 subjects of a student.
6. Write a program to calculate the arithmetic mean, using formula am = (sum of n terms)/n.
7. Write a  program to find any power of a number.
8. Write a  program to find the square root and cube root of a number.
9. Write a  program to find SIN, COS, sec, TAN, and COSEC of an angle.
10. Write a  program to find quotient and remainder.
11. Write a  program to swap two numbers.
12. Write a  program to swap two numbers without using a third variable.
13. Write a  program to print the sum of digits of a number.
14. Write a  program to reverse a number.
15. Write a  program to print the factorial of a number.
16. Write a  program to find the area and perimeter of a rectangle, using the formula area = l*w and perimeter = 2*(l+w).
17. Write a  program to find the area and circumference of a circle, using the formula area = 3.14 *radius2 and circumference = 2 * π * radius.
18. Write a  program to find surface area and volume of a cone, using formula sa = π * radius (radius + √(h2+r2)) and volume = π * radius2 * (height / 3).
19. Write a  program to find the perimeter of a parallelogram, using the formula perimeter = 2 (side + base).
20. Write a  program to convert centigrade to Fahrenheit using formula, t(°f) = t(°c) × 9/5 + 32 and  Fahrenheit to centigrade using formula, t(°c) = (t(°f) – 32) × 5/9.
21. Write a  program to find the area of a triangle using the formula
22. Program to find simple interest using the formula, simple interest = (p * t * r)/100, where p = principle amount, t= time period and r= rate of interest.
23. A program that asks the user how many eggs he/she has and then tells the user how many dozen eggs he/she has and how many extra eggs are leftover.
24.  Write a  program to solve the equation, y = b2 – 4ac. The program should ask the values of variables a, b and c from the user and display the result.

### 1 thought on “Programming Problems”

1. very nice and important question