Computer Science, asked by aditichauhan69, 1 year ago

write a program to print the first N positive odd integers.

Answers

Answered by nain31
1
import Java. io.*;
Class b
(
psvm
(
DIS
int i, N;
Sopln("enter the number of terms");
N=Ip;
for (i=1;i<=N; i++)
(
if(i %2!=0)
Sopln(i+" ");
)
)
)

hope it helps if u have questions plz ask anytime!! (。’▽’。)♡
Similar questions