A voir également:
- Aide Programmation Java pour un dessin
- Ce programme est écrit en python. il construit un mot secret dans une variable mais il ne l'affiche pas. modifiez-le pour qu'il affiche le mot secret. exécutez-le. quel est ce mot secret ? ✓ - Forum Python
- Dessin clavier zizi ✓ - Forum Internet / Réseaux sociaux
- Jeux java itel ✓ - Forum Jeux vidéo
- Java runtime - Télécharger - Langages
- Java apk - Télécharger - Langages
2 réponses
import java.util.Scanner;
public class Pp {
public static void main(String[] args) {
Scanner x=new Scanner(System.in);
System.out.print("Entrez le degre \n");
int n=x.nextInt();
for(int i=1;i<=n;i++)
{int k=1;
while(k<=i){
System.out.print("*");k++;
}
k=1;
while(k<=i){
System.out.print(".");k++;
}}}}
public class Pp {
public static void main(String[] args) {
Scanner x=new Scanner(System.in);
System.out.print("Entrez le degre \n");
int n=x.nextInt();
for(int i=1;i<=n;i++)
{int k=1;
while(k<=i){
System.out.print("*");k++;
}
k=1;
while(k<=i){
System.out.print(".");k++;
}}}}