anitadevkarMar 13, 20221 min readProgram to print TriangleProgram:#include <stdio.h>int main(){ int i,j; for(i=5;i>0;i--) //for rows { for(j=0;j<i;j++) //for columns j loop will iterate till value of i { printf("*"); } printf("\n"); } return 0;}Output:***************
Program:#include <stdio.h>int main(){ int i,j; for(i=5;i>0;i--) //for rows { for(j=0;j<i;j++) //for columns j loop will iterate till value of i { printf("*"); } printf("\n"); } return 0;}Output:***************
C Program to print Floyd's TriangleProgram: #include <stdio.h> int main() { int i,j,r,counter=1; printf("Enter how many rows you want to print"); scanf("%d",&r);...
C Program for pyramid of numberProgram: #include <stdio.h> int main() { int i,j; for(i=5;i>0;i--) //for rows { for(j=1;j<=i;j++) //for columns j loop will iterate...
Program to print triangle In this program you will see working of nested for loop. Program: #include <stdio.h> int main() { int i,j; for(i=0;i<5;i++) //for...
Comments