DATE PA Write a progoam to input following series a)
9
79
579
3579
13579
Answers
Answered by
1
Answer:
Answer: The required java pragram is :-
public class Main {
public static void main(String[] args) {
for (int i=9 ; i>=1 ; i-=2) {
for (int j=i ; j<=9 ; j+=2) {
System.out.print(j);
}
System.out.print(” “);
}
}
}
Answered by
1
The required java pragram is :
public class Main
{ public static void main(String[] args)
{ for (int i=9; i>=1; i-=2)
{ for (int ji; j<=9; j+=2) {
System.out.print(j);
}
System.out.print(" ");
}
}
}
Similar questions
Math,
1 day ago
Social Sciences,
1 day ago
English,
3 days ago
Chemistry,
8 months ago
Math,
8 months ago