import java.util.Scanner;

public class exercicio5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        for (int i = 0; i <= N; i++) {
            if (i % 2 == 1)
            System.out.println(i);
        }
    }
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: