Advertisement
anonymzz

Untitled

Mar 11th, 2023
567
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.71 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     printf("Welcome\nto\nSLIIT\n"); // new line character
  5.     printf("Welcome\tto\tSLIIT\n"); // tab
  6.    
  7.     // shape 1
  8.     printf("*********\n");
  9.     printf("*\t*\n");
  10.     printf("*\t*\n");
  11.     printf("*\t*\n");
  12.     printf("*\t*\n");
  13.     printf("*********\n");
  14.    
  15.     // shape 2
  16.     printf("  ***\n");
  17.     printf(" *   *\n");
  18.     printf("*     *\n");
  19.     printf("*     *\n");
  20.     printf(" *   *\n");
  21.     printf("  ***\n");
  22.    
  23.     // shape 3
  24.     printf("*\n");
  25.     printf("**\n");
  26.     printf("***\n");
  27.     printf("****\n");
  28.     printf("*****\n");
  29.     printf("******\n");
  30.    
  31.     // shape 4
  32.     printf("  *\n");
  33.     printf(" ***\n");
  34.     printf("*****\n");
  35.     printf("  *\n");
  36.     printf("  *\n");
  37.     printf("  *\n");
  38.    
  39.     return 0;
  40.  
  41. } // end of main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement