public class NthAfterN {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the nth odd:");
int n = sc.nextInt();
int j = 1;
int arr[] = new int[100];
for (int i = 0; i <= 100; i++) {
if (i % 2 != 0) {
arr[j] = i;
j++;
package com.dain.logics;
import java.util.Scanner;
public class NthAfterN { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the nth odd:"); int n = sc.nextInt(); int j = 1; int arr[] = new int[100]; for (int i = 0; i <= 100; i++) { if (i % 2 != 0) { arr[j] = i; j++;
}