import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
System.out.println("Enter 2 numbers : ");
int m = s.nextInt();
int b = s.nextInt();
while(m<=b){
if(m%2!=0){
System.out.print(m+" ");
m+=1;
}
}
s.close();
}
}
I get an error in a platform called "Terv" The error is "Time Limit Exceeded" I tried running this on VS code and it was running for eternity after I give the input