Help me in solving LOOPJ2V2 problem

My issue

the problem is its not submitting the solution ,it is showing time limit exceed.what should i do now

My code

import java.util.*;

class Codechef
{
	public static void main (String[] args)
	{
		Scanner read = new Scanner(System.in);
		int num = read.nextInt();
		int a = 0;
		// Update your code below this line
		while(a < num);
		{
		System.out.println(a);
		a++;
		}
	}
}

Learning course: Learn Java
Problem Link: CodeChef: Practical coding for everyone

remove ; from while condition and also try and out a<=num