https://www.codechef.com/submit/FLOW006

everything is right in this code still it is showing error message
import java.util.Scanner;
public class sum
{
int n;
public static void main(String[]args)
{
int r,sum,temp;
Scanner s= new Scanner(System.in);
System.out.println(“enter the number:”);
int n= s.nextInt();
sum=0;
while(n>0)
{
r=n%10;
sum=sum+r;
n=n/10;
}
System.out.println(“the sum is”+sum);
}
}

remove this and try again…

System.out.println(“the sum is”+sum); <-- And here just print out the sum

The input and Output format given in the problem should match exactly…

code is ok but there is used incorrect character for a quotation mark, use this " " instead