diff --git a/C/traingle b/C/traingle new file mode 100644 index 0000000..cbf2bd7 --- /dev/null +++ b/C/traingle @@ -0,0 +1,15 @@ +int main() +{ + int rows = 5; + + // first loop for printing rows + for (int i = 0; i < rows; i++) { + + // second loop for printing character in each rows + for (int j = 0; j <= i; j++) { + printf("* "); + } + printf("\n"); + } + return 0; +}