Calculate y/x using Patch

Write a program to calculate the result of y/x, where y and x are integers. Ensure that x is non-zero.

Requirements:

  • Input: Two integers y and x.
  • Output: The result of y/x, formatted to two deci...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: