Write a Java program to display the following series 1,3,5,7, 9....21
Answers
Answered by
2
Answer:
here is your answer mate Please mark me as Brainliest
Attachments:
Answered by
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