int a=2, b=3, c=4, d=5;
printf ("%d/%d + %d/%d = %d/%d\n", a, b, c, d, a*d+b*c, b*d);
Chat with our AI personalities
No, never.
Yes. Rational numbers are numbers that can be written as a fraction. Irrational numbers cannot be expressed as a fraction.
The way in which the binary functions, addition and multiplication, are defined on the set of rational numbers ensures that the set is closed under these two operations.
Yes. In fact, a rational plus or minus an irrational will always be irrational.
Yes.