GithubHelp home page GithubHelp logo

100-pattern-printing-program-in-c's Introduction

OUTPUTS

1. Square star

Enter the size: 5
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *

2. Hollow Square

Enter the size: 5
* * * * *
*       *
*       *
*       *
* * * * *

3. Rhombus Pattern

Enter the size: 5
* * * * *
  * * * * *
    * * * * *
      * * * * *
        * * * * *

4. Rectangle Star Pattern

Enter the Height: 5
Enter the Width: 8
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *

5. Hollow Rectangle

Enter the Height: 5
Enter the Width: 8
* * * * * * * *
*             *
*             *
*             *
* * * * * * * *

6. Inverted Rhombus

Enter the size: 5
        * * * * *
      * * * * *
    * * * * *
  * * * * *
* * * * *

7. Parallelogram

Enter the Height: 5
Enter the Width: 8
* * * * * * * *
  * * * * * * * *
    * * * * * * * *
      * * * * * * * *
        * * * * * * * *

8. Inverted Parallelogram

Enter the Height: 5
Enter the Width: 8
        * * * * * * * *
      * * * * * * * *
    * * * * * * * *
  * * * * * * * *
* * * * * * * *

9. Triangle

Enter the size: 5
*
* *
* * *
* * * *
* * * * *

10. Pyramid

Enter the Height: 5
        *
      * * *
    * * * * *
  * * * * * * *
* * * * * * * * *

11. Hollow Pyramid

Enter the Height: 6
          *
        *   *
      *       *
    *           *
  *               *
* * * * * * * * * * *

12. Inverted Pyramid

Enter the Height: 5
* * * * * * * * *
  * * * * * * *
    * * * * *
      * * *
        *

13. Inverted Hollow Pyramid

Enter the Height: 6
* * * * * * * * * * *
  *               *
    *           *
      *       *
        *   *
          *

14. Half-diamond-Left

Enter the Size: 6
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * *
* * * *
* * *
* *
*

15. Half-diamond-Right

Enter the Size: 6
          *
        * *
      * * *
    * * * *
  * * * * *
* * * * * *
  * * * * *
    * * * *
      * * *
        * *
          *

16. Diamond

Enter the half length of the width : 6
          *
        * * *
      * * * * *
    * * * * * * *
  * * * * * * * * *
* * * * * * * * * * *
  * * * * * * * * *
    * * * * * * *
      * * * * *
        * * *
          *

17. Sharp Diamond

Enter the Size: 6
Size is incremented by 1 
      *
    * * *
  * * * * *
* * * * * * *
  * * * * *
    * * *
      *

18. Square using 1

Enter the size: 5
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1

19. Square with incrementing num

Enter the size: 5
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5

20. Incrementing number on triangle

Enter the size: 6
00
01 02
03 04 05
06 07 08 09
10 11 12 13 14
15 16 17 18 19 20

21. Inverted Triangle

Enter the size: 6
* * * * * *
* * * * *
* * * *
* * *
* *
*

22. incrementing numbers on inverted triangle

Enter the size: 6
00 01 02 03 04 05
06 07 08 09 10
11 12 13 14
15 16 17
18 19
20

23. Decrementing numbers on inverted triangle

Enter the size: 6
21 20 19 18 17 16
15 14 13 12 11
10 09 08 07
06 05 04
03 02
01

24. Square Incrementing Numbers

Enter the size: 6
00 01 02 03 04 05
06 07 08 09 10 11
12 13 14 15 16 17
18 19 20 21 22 23
24 25 26 27 28 29
30 31 32 33 34 35

25. Square Incrementing Numbers, only Even Numbers

Enter the size: 9
00  02  04  06  08
  10  12  14  16
18  20  22  24  26
  28  30  32  34
36  38  40  42  44
  46  48  50  52
54  56  58  60  62
  64  66  68  70
72  74  76  78  80

26. Square Incrementing Numbers, only Odd Numbers

Enter the size: 9
  01  03  05  07
09  11  13  15  17
  19  21  23  25
27  29  31  33  35
  37  39  41  43
45  47  49  51  53
  55  57  59  61
63  65  67  69  71
  73  75  77  79

27. Decrementing numbers on square

Enter the size: 6
36 35 34 33 32 31
30 29 28 27 26 25
24 23 22 21 20 19
18 17 16 15 14 13
12 11 10 09 08 07
06 05 04 03 02 01

100-pattern-printing-program-in-c's People

Contributors

rith1x avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.