package com.codegym.task.task04.task0412;
/*
Positive and negative numbers
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner myObj = new Scanner(System.in);
double number = myObj.nextDouble();
...
}
what is wrong with my code??
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Roman
1 October 2019, 11:33
Use int instead of double. We'll fix the tests.
0