Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

simple Java programming need help

vistamiz3r

Apprentice
Advanced Member
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();
}


}
}
 
try mo to ts

public class NumberPattern8 {

public static void main(String []args){
int n = 9; //change this to your desire *must be odd number

for(int i=1; i<=(n+1)/2; i++) {
for(int j=i; j<=(n+1)/2; j++) {
System.out.print(j);
if(j != (n+1)/2)
System.out.print((n+1) - j);
}
System.out.println();
}
}
}
 
Back
Top Bottom