triangulo asteriscos

public class trianaste { public static void main(String[] args) { int l=1; for(l=1;l<=5;l++){ int e; int en=5-l; for(e=en;e>=0;e--){ System.out.print(" "); } int a=l*2; int an=1; for(an=1;an<=a;an++){ System.out.print("*"); } System.out.println(""); } } }

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.