Verify said : task is no met !
What's my code wrong
Thanks a lot?
package com.codegym.task.task04.task0412;
/*
Positive and negative numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
String A = reader.readLine();
int a = Integer.parseInt( A);
if (a>0)
System.out.println(a+a);
else
if (a<0)
System.out.println(a+1);
if (a ==0)
System.out.println("zero");
//write your code here
}
}