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