Skip to main content

Posts

Featured

Pattern 25

// Pyramid #include<stdio.h> int main() {   int i,j,k=0; for(i=1;i<=5;i++) // for loop that prints *. { for(j=5;j>i;j--) { printf("*"); } for(j=i;j>=1;j--) // for loop that prints characters. { if(j==2 || j==4) { printf("%c",j+64); } else { printf("%d",j); } } printf("\n");      } return 0; }

Latest posts

Pattern 24

Pattern 23

Pattern 22

Pattern 21

Pattern 20

Pattern 19

Pattern 18

Pattern 17

Pattern 16

Pattern 15