diff --git a/c_programs/pascal's triangle c program.c b/c_programs/pascal's triangle c program.c new file mode 100644 index 0000000..87050c1 --- /dev/null +++ b/c_programs/pascal's triangle c program.c @@ -0,0 +1,22 @@ +#include +int main() +{ + int rows, coef = 1, space, i, j; + printf("Enter number of rows: "); + scanf("%d",&rows); + for(i=0; i