****star triangle language java || triangle d'étoile langage java ****
**********************Code**********************
package ty; import java.util.Scanner; public class test { public static void main(String[] args) { // TODO Auto-generated method stub int N; Scanner sc=new Scanner(System.in); System.out.println("Donne la taille : "); N=sc.nextInt(); for(int i=0;i<N;i++){ for(int j=0;j<((N*2)-1)-i;j++){ if(i==0&&j==0) System.out.print("."); else System.out.print(" "); } for(int k=0;k<(2*i+1);k++)System.out.print("*"); System.out.println(); } for(int i=N;i<2*N;i++){ for(int j=0;j<((N*2)-1)-i;j++)System.out.print(" "); for(int k=0;k<(2*(i-N)+1);k++)System.out.print("*"); for(int m=0;m<2*(2*N-i)-1;m++)System.out.print(" "); for(int p=0;p<(2*(i-N)+1);p++)System.out.print("*"); System.out.println();; } } }