Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions C/Floyd.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Github username: HIMU-2001
// Aim: Floyd's Triangle
// Date: 15.10.22

#include <stdio.h>
int main() {
int rows, i, j, number = 1;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 1; i <= rows; i++) {
for (j = 1; j <= i; ++j) {
printf("%d ", number);
++number;
}
printf("\n");
}
return 0;
}
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
| Yoni Saka | <a href="https://github.com/yonisaka">Yoni Saka</a> | <a href="mailto:[email protected]">E-Mail</a> |
| Abhishek | <a href="https://github.com/Unseen-firebrand">Abhishek</a> | <a href="mailto:[email protected]">E-Mail</a> |
| Volodymyr Vasiutyk | <a href="https://github.com/vasvolodimir">Volodymyr</a> | <a href="mailto:[email protected]">E-Mail</a> |
| Himanshu Rai | <a href="https://github.com/HIMU-2001">Himanshu</a> | <a href="mailto:[email protected]">E-Mail</a> |



Expand Down