SECTION 1: ARITHMETIC OPERATORS ( + - * / // % ** )

30 Questions

  1. Take two integers from user and print their sum.
  2. Take two integers and print subtraction result.
  3. Take two floats and print multiplication result.
  4. Take two numbers and print division result.
  5. Take two integers and print floor division result.
  6. Take two integers and print remainder using %.
  7. Take a number and print its square using **.
  8. Take a number and print its cube.
  9. Take two numbers and calculate average.
  10. Take length and width from user and calculate area.
  11. Take radius and calculate area of circle (3.14 * r * r).
  12. Take principal, rate, time and calculate simple interest.
  13. Take total marks of 5 subjects and calculate percentage.
  14. Take salary and increase it by 10%.
  15. Take a number and divide it by 2 using /= operator.
  16. Take a number and multiply it by 5 using *= operator.
  17. Take two numbers and swap them using arithmetic operators.
  18. Take a number and check if it is even using %.
  19. Take a number and check if it is odd using %.