My Code isn't producing output in your ide

I tried on my local system it seems to work but here it is not producing any output. Here is the code
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner cin=new Scanner(System.in);
int c,sum;
while((c=cin.nextInt())>=0){
System.out.println©;
}
}
}

hi @sauravjaiswalsj,
First of all there you are having a unrecognised symbol after system.out.println. After correcting that the program will give correct output. Please correct that and the other is a conceptual error according to which you have to print integers until the sum of that integer and all the integers before that is greater than zero. For example if testcase is 10,5,-1,10,-100 then you are supposed to print 10 , 5 , -1 , 10 but your code will print till 10 , 5 .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.