0

JAVA

I'm trying to write a program that asks a user to input a number (x). The program determines if the input (x) is a float/double and says "(x) has a decimal". If integer, states "(x) is an integer". could anyone show me how to do this in code? should I use an "if"?

30th Jun 2018, 3:14 PM
Jeff
Jeff - avatar
2 Respuestas
+ 3
Please state a question Jeff as that is what the discussions are for. Here is a reminder: https://www.sololearn.com/discuss/1316935/?ref=app
30th Jun 2018, 3:48 PM
Agent
Agent - avatar
30th Jun 2018, 4:39 PM
Nitish kumar jha
Nitish kumar jha - avatar