Pattern Printing Program of Number
==============================================
class Pattern{
public static void main(String args[]){
for(int i=5;i>=1;i--){
for(int j=i;j<=5;j++){
System.out.print(j+" ");
}
System.out.println();
}
}
}
This Is above are the java code program to print the Pattern Like that.
Output:
5
4 5
3 4 5
2 3 4 5
1 2 3 4 5
This is output of this program we can change also with your own requirement in java.
Comments
Post a Comment