My issue
I run the code but the code shows error while i think it is correct
Learning course: Learn Advance Java
Problem Link: Practice Problem in - CodeChef
I run the code but the code shows error while i think it is correct
Learning course: Learn Advance Java
Problem Link: Practice Problem in - CodeChef
@rnjnaditya0119
this will be the correct rearrangement
public static void main(String[] args) {
int sum = 0;
for (int i = 1; i <= 10; i++) {
sum += i;
}
System.out.println("Sum: " + sum);
}