imprimir numeros en asenso

public class numeron { public static void main (String[] args) { int x,y,r=0; for (x=1;x<8;x++){ System.out.println(); if(x>4) r=r-1; else r=x; for (y=1;y<=r;y++){ System.out.print("\t"+y); } } } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.