Https://ide.codingblocks.com/s/120049

3test cases are failing

if(sum>0) {
System.out.println(sum);
}

You are supposed to print the number that you are taking as input, not the sum. And also, the if condition should be if(sum>=0)