Computer Science, asked by ashwin6767, 4 months ago

write a program to print the first 10 positive odd integers with help of for loop​

Answers

Answered by kamalrajatjoshi94
0

Answer:

Program:-

public class Positive

{

public static void main(String args[ ])

{

int a;

for(a=1;a<=20;a=a+2)

{

System.out.println(a);

}

}

}

Output:-

1

3

5

7

9

11

13

15

17

19

Similar questions