JAVA LANGUAGE 4. Operation: Operation by CodeChum Admin You have been cordially invited to partake in Operation: Operation. Your mission, should you choose to accept it, is to take the two numbers and...


JAVA LANGUAGE





4. Operation: Operation


by CodeChum Admin






You have been cordially invited to partake in Operation: Operation. Your mission, should you choose to accept it, is to take the two numbers and the operator given then perform the operation successfully.




Instructions:



  1. Input one number (integer or decimal), an operator (+, -, *, /), and another number (integer or decimal).

  2. Print the result of the operation between the two numbers, up to 2 decimal places.




Instructions




  1. Input one number (integer or decimal), an operator (+, -, *, /), and another number.

  2. Print the result of the operation between the two numbers, up to 2 decimal places.








Input


The first line contains the first number. The second line contains the operator. The third line contains the second number.




5 + 0.70





Output


A line containing a decimal/float containing two decimal places.




5.70




Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here