InterviewSolution
Saved Bookmarks
| 1. |
A)Write a program to display the following pattern in java: 13 15 3 17 5 3 19 7 5 3 1Answer it correctly.....if u dont know the answer.....dont answer. |
|
Answer» n:a)Write a PROGRAM to display the following pattern in java: 1 3 1 5 3 1 7 5 3 1 9 7 5 3 1ANSWER:import java.util.*;public class Pattern{public static void main(STRING args[]){Scanner in =new Sacanner(Syste.in);int a,b,c,d;System.out.println("The pattern");for (a=1;a<=9;a++){c=dfor (b=1;b<=a;b++)System.out.println(c+" ");c=c-2;}d=d-2;System.out.println( );}}}For more java programmings follow the given LINKS as I have solved earlier:brainly.in/question/14797688brainly.in/question/16088835 brainly.in/question/16091640 |
|