How can i write a program to display a number of series like the following:
56789
6789
789
89
9
i have write the program but its not giving the desired output.Somethin g is missing.Please can anyone tell what condition i required for the completion of the above problem.
Thank You....
56789
6789
789
89
9
Code:
public class displaying {
public static void main(String args[]){
int x,y,z;
for(x=0;x<5;x++){
for(y=5;y<10;y++){
z=x+y;
System.out.println(z);
}
}
}
}
Thank You....
Comment