Right-angle triangle
Leçon 6 sur 30 du cours Bootcamp : Motifs d'étoiles de Coddy.
Défi
FacileÉcrivez un programme qui affiche un triangle rectangle d'étoiles comme illustré ci-dessous. Le motif se compose de 6 lignes et 6 colonnes.
Modèle de sortie :
*
* *
* * *
* * * *
* * * * *
* * * * * * Essayez vous-même
#include <stdio.h>
int main() {
// Écrivez votre code ici
return 0;
};Toutes les leçons de Bootcamp : Motifs d'étoiles
2Beginner Level Pattern's
Row of starsColumn of starsSolid square of starsRight-angle triangleLeft-angle triangleInverted right-angle triangleInverted left-angle triangleRhombus Pattern3Intermediate Level Pattern's
Pyramid of starsInverted PyramidDiamond PatternRight Direction ArrowLeft Direction ArrowPlus PatternX Pattern