Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- char* array[]={
- " *",
- " **",
- " ***",
- " ****",
- " ***",
- " **",
- " *"};
- for(int i=0; i< 7; i++){
- printf("%s\n",array[i]);
- }
- return 0;
- }
- // OUTPUT
- /*
- $ clang redditChallenge.c
- $ ./a.out
- *
- **
- ***
- ****
- ***
- **
- *
- $
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement