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
Computer Science,
7 months ago
Science,
7 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