Variable not found in Java
java
Solution
for(int i=0; i<=9;i++);
// ^ get rid of this
should be
for(int i=0; i<=9;i++)
Because of that the for statement ends there and the new block had been started there.
Problem
I've just started working with some programming in java. I'm experimenting with loops and I have a problem with a for-loop where I'm having a hard time finding the mistake. Its saying that "i" is not a variable, even though i made it one in just above. Hope you guys can help! ``` import java.util.Scanner; public class Loops { public static void main(String [] args) { Scanner sc = new Scanner(System.in); System.out.println("Skriv et tal"); int a = sc.nextInt(); for(int i = 0; i <= 9; i++); { System.out.println(a + i); } } } ```