write a program to print the first N positive odd integers.
Answers
Answered by
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!! (。’▽’。)♡
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
Social Sciences,
6 months ago
Math,
6 months ago
History,
6 months ago
Social Sciences,
1 year ago
Math,
1 year ago
CBSE BOARD XII,
1 year ago
Math,
1 year ago
Math,
1 year ago