SECTION 1: ARITHMETIC OPERATORS ( + - * / // % ** )
30 Questions
- Take two integers from user and print their sum.
- Take two integers and print subtraction result.
- Take two floats and print multiplication result.
- Take two numbers and print division result.
- Take two integers and print floor division result.
- Take two integers and print remainder using %.
- Take a number and print its square using **.
- Take a number and print its cube.
- Take two numbers and calculate average.
- Take length and width from user and calculate area.
- Take radius and calculate area of circle (3.14 * r * r).
- Take principal, rate, time and calculate simple interest.
- Take total marks of 5 subjects and calculate percentage.
- Take salary and increase it by 10%.
- Take a number and divide it by 2 using /= operator.
- Take a number and multiply it by 5 using *= operator.
- Take two numbers and swap them using arithmetic operators.
- Take a number and check if it is even using %.
- Take a number and check if it is odd using %.