0

How to write a code in c++ to check whether the numbers are rational or irrational.

solve please

4th Nov 2018, 1:16 PM
Fan Of Mr Beast
Fan Of Mr Beast - avatar
2 Antworten
+ 1
Any number in C++ is rational. bool is_rational(double x) { return true; }
4th Nov 2018, 1:57 PM
Schindlabua
Schindlabua - avatar
- 2
We won't write codes for you but feel free to ask for help when writing it yourself
4th Nov 2018, 1:51 PM
ReimarPB
ReimarPB - avatar