Write a Java program that computes the sum of two rational numbers given by the user. [Note:
If two numbers are rational, then we can write them in the form /x and /y, for some
integer values of a, b, x and y, and x and y cannot be zero.
Then their sum is: / +b/y
Answers
Answered by
2
let myInt = 5;
let myFloat = 6.667;
myInt;
myFloat;
Similar questions