Java Practice Exercise – Operators

Operators
  • Read two numbers and perform all Arithmetic operations on them.
  • Read two numbers and swap the values
  • Read four numbers. Calculate sum and average.
  • Read a number. Calculate its square and cube.
  • Read 5 marks of a student. Display the sum and average.
  • Area and circumference of a circle
  • Volume of sphere
  • Volume of cylinder
  • Area of triangle
  • Simple and compound interest
  • Distance between two points
  • Fahrenheit to centigrade conversion