- Messages
- 51
- Reaction score
- 0
- Points
- 26
pahelp how to output this one po using java programming , thanks in advance
19283765
2837465
37465
465
5
- - - Updated - - -
yan lang po kasi nagagawa ko di ko alam pano isingit yung 9 8 765 hehe
123
12
1
public class NumberPattern8 {
public static void main(String[] args) {
int i = 3;
while (i <= 3) {
int j = 1;
while (j <= i) {
System.out.print(j);
j++;
}
i--;
System.out.println();
}
}
}
- - - Updated - - -
Ganyan lang nagagawa ko po di ko alam ipagcombine hehe , pahelp po
98765
8765
765
65
5
public class JavaNumberPattern11 {
public static void main(String[] args) {
int n = 3; // Use Scanner as shown in previous examples if u want user to enter this
for (int i = 1; i <= n; i++) {
for (int k = i; k <= 3; k++) {
System.out.print(k);
}
System.out.println();
}
}
}
- - - Updated - - -
123
23
3
public class JavaNumberPattern11 {
public static void main(String[] args) {
int n = 3; // Use Scanner as shown in previous examples if u want user to enter this
for (int i = 1; i <= n; i++) {
for (int k = i; k <= 3; k++) {
System.out.print(k);
}
System.out.println();
}
}
}
19283765
2837465
37465
465
5
- - - Updated - - -
yan lang po kasi nagagawa ko di ko alam pano isingit yung 9 8 765 hehe
123
12
1
public class NumberPattern8 {
public static void main(String[] args) {
int i = 3;
while (i <= 3) {
int j = 1;
while (j <= i) {
System.out.print(j);
j++;
}
i--;
System.out.println();
}
}
}
- - - Updated - - -
Ganyan lang nagagawa ko po di ko alam ipagcombine hehe , pahelp po
98765
8765
765
65
5
public class JavaNumberPattern11 {
public static void main(String[] args) {
int n = 3; // Use Scanner as shown in previous examples if u want user to enter this
for (int i = 1; i <= n; i++) {
for (int k = i; k <= 3; k++) {
System.out.print(k);
}
System.out.println();
}
}
}
- - - Updated - - -
123
23
3
public class JavaNumberPattern11 {
public static void main(String[] args) {
int n = 3; // Use Scanner as shown in previous examples if u want user to enter this
for (int i = 1; i <= n; i++) {
for (int k = i; k <= 3; k++) {
System.out.print(k);
}
System.out.println();
}
}
}