Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- printf("Welcome\nto\nSLIIT\n"); // new line character
- printf("Welcome\tto\tSLIIT\n"); // tab
- // shape 1
- printf("*********\n");
- printf("*\t*\n");
- printf("*\t*\n");
- printf("*\t*\n");
- printf("*\t*\n");
- printf("*********\n");
- // shape 2
- printf(" ***\n");
- printf(" * *\n");
- printf("* *\n");
- printf("* *\n");
- printf(" * *\n");
- printf(" ***\n");
- // shape 3
- printf("*\n");
- printf("**\n");
- printf("***\n");
- printf("****\n");
- printf("*****\n");
- printf("******\n");
- // shape 4
- printf(" *\n");
- printf(" ***\n");
- printf("*****\n");
- printf(" *\n");
- printf(" *\n");
- printf(" *\n");
- return 0;
- } // end of main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement