Ad

Exercise: Arithmetic Operators

  1. WAP to input two numbers and find the sum.

    Solution: C Python PHP Java C#

  2. WAP to input two numbers and find multiplication.

    Solution: C Python PHP Java

  3. WAP to input a number and calculate its square and cube.

    Solution: C Python Java

  4. WAP to input the length and breadth of a rectangle and calculate its area. Area = Length * Breadth.

    Solution: C Python

  5. WAP to input the radius and calculate area of circle and circumference of a circle. Area of circle = 3.14*r*r, Circumference of circle = 2*3.14*r

    Solution: C Python

  6. WAP to input radius and height of a cylinder and calculate the volume of the cylinder. Volume=3.14*r*r*h

    Solution: C Python

  7. WAP to input principal, rate, time, and calculate simple interest. Simple Interest = Principal * Rate * Time / 100.

    Solution: C Python

  8. WAP to input 5 subject marks of a student and find total marks and percentage obtained by the student.

    Solution: C Python

  9. WAP to convert temperature from Fahrenheit to Celsius. C=(F-32)*5/9.

    Solution: C Python PHP Java

  10. WAP to convert temperature from Celsius to Fahrenheit. F=C*9/5+32.

    Solution: C Python

  11. WAP to input distance (in km) and convert in meters, centimetres, and inches.

    Solution: C Python Java

  12. WAP to input two numbers, divide them and display its quotient and remainder.
  13. WAP to input two numbers and swap them.

    Solution: C Python

  14. WAP to input two numbers and swap them without using a 3rd variable.

    Solution: C Python

  15. WAP to input minutes and convert in hours and minutes.

    Solution: C Python

  16. WAP to input the total number of days and convert it into years, months, weeks, and days.

    Solution: C Python

Exercise Arithmetic Operators

Advertisement

C Language Feedback, Questions, Suggestions, Discussion.

Ad: