Skip to content

Commit

Permalink
traingle
Browse files Browse the repository at this point in the history
  • Loading branch information
harithadas010 authored Oct 5, 2023
1 parent a980177 commit f138a0a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions C/traingle
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit f138a0a

Please sign in to comment.