Computer Science, asked by ganeshshelke2141, 7 months ago

Write a Java program to display the following series 1,3,5,7, 9....21

Answers

Answered by vanshu0827
2

Answer:

here is your answer mate Please mark me as Brainliest

Attachments:
Answered by udayagrawal49
0

Answer: The required Java program is :-

public class OddSeries {

public static void main(String[] args) {

 for (int i=1 ; i<=21 ; i+=2) {

  System.out.print(i+" ");

 }

}

}

Please mark it as Brainliest.

Similar questions