From 17ffeb844391a3030d53f711f1c610292e8c42b0 Mon Sep 17 00:00:00 2001 From: Aryan-kamboj <90714196+Aryan-kamboj@users.noreply.github.com> Date: Sat, 2 Oct 2021 22:09:01 +0530 Subject: [PATCH 1/7] read extended this pyramid has the same number of stars as the number of line not only odd numbers of stars --- C/a crazy pyramid program for c.c | 71 +++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 C/a crazy pyramid program for c.c diff --git a/C/a crazy pyramid program for c.c b/C/a crazy pyramid program for c.c new file mode 100644 index 00000000..cf403b00 --- /dev/null +++ b/C/a crazy pyramid program for c.c @@ -0,0 +1,71 @@ +// * +// * * +// * * * +// * * * * +// * * * * * +#include +#include +void main() +{ + int row,col,h; + printf("enter height\n"); + scanf("%d",&h); + if(h%2!=0) + { + for(row=0;row=h-row)&&(col<=h+row) || (col>h-row)&&(colh-row)&&(col Date: Sat, 2 Oct 2021 22:09:59 +0530 Subject: [PATCH 2/7] Rename a crazy pyramid program for c.c to A crazy pyramid program for c.c --- ...zy pyramid program for c.c => A crazy pyramid program for c.c} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename C/{a crazy pyramid program for c.c => A crazy pyramid program for c.c} (100%) diff --git a/C/a crazy pyramid program for c.c b/C/A crazy pyramid program for c.c similarity index 100% rename from C/a crazy pyramid program for c.c rename to C/A crazy pyramid program for c.c From fb351002f2afe54c60e5e548ef381ee7c1e6fca0 Mon Sep 17 00:00:00 2001 From: Aryan-kamboj <90714196+Aryan-kamboj@users.noreply.github.com> Date: Sat, 2 Oct 2021 22:35:45 +0530 Subject: [PATCH 3/7] Delete A crazy pyramid program for c.c --- C/A crazy pyramid program for c.c | 71 ------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 C/A crazy pyramid program for c.c diff --git a/C/A crazy pyramid program for c.c b/C/A crazy pyramid program for c.c deleted file mode 100644 index cf403b00..00000000 --- a/C/A crazy pyramid program for c.c +++ /dev/null @@ -1,71 +0,0 @@ -// * -// * * -// * * * -// * * * * -// * * * * * -#include -#include -void main() -{ - int row,col,h; - printf("enter height\n"); - scanf("%d",&h); - if(h%2!=0) - { - for(row=0;row=h-row)&&(col<=h+row) || (col>h-row)&&(colh-row)&&(col Date: Sat, 2 Oct 2021 22:42:13 +0530 Subject: [PATCH 4/7] n'th number of line has n stars --- A crazy pyramid program for c.c | 71 +++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 A crazy pyramid program for c.c diff --git a/A crazy pyramid program for c.c b/A crazy pyramid program for c.c new file mode 100644 index 00000000..42c48d25 --- /dev/null +++ b/A crazy pyramid program for c.c @@ -0,0 +1,71 @@ +//n'th number of line has n number of stars; +// * +// * * +// * * * +// * * * * +#include +#include +void main() +{ + int row,col,h; + printf("enter height\n"); + scanf("%d",&h); + if(h%2!=0) + { + for(row=0;row=h-row)&&(col<=h+row) || (col>h-row)&&(colh-row)&&(col Date: Sat, 2 Oct 2021 22:46:58 +0530 Subject: [PATCH 5/7] Delete A crazy pyramid program for c.c --- A crazy pyramid program for c.c | 71 --------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 A crazy pyramid program for c.c diff --git a/A crazy pyramid program for c.c b/A crazy pyramid program for c.c deleted file mode 100644 index 42c48d25..00000000 --- a/A crazy pyramid program for c.c +++ /dev/null @@ -1,71 +0,0 @@ -//n'th number of line has n number of stars; -// * -// * * -// * * * -// * * * * -#include -#include -void main() -{ - int row,col,h; - printf("enter height\n"); - scanf("%d",&h); - if(h%2!=0) - { - for(row=0;row=h-row)&&(col<=h+row) || (col>h-row)&&(colh-row)&&(col Date: Sat, 2 Oct 2021 22:53:06 +0530 Subject: [PATCH 6/7] Create A crazy pyramid program for c.c --- C/A crazy pyramid program for c.c | 71 +++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 C/A crazy pyramid program for c.c diff --git a/C/A crazy pyramid program for c.c b/C/A crazy pyramid program for c.c new file mode 100644 index 00000000..7720382e --- /dev/null +++ b/C/A crazy pyramid program for c.c @@ -0,0 +1,71 @@ +// n'th line has n number of stars +// * +// * * +// * * * +// * * * * +#include +#include +void main() +{ + int row,col,h; + printf("enter height\n"); + scanf("%d",&h); + if(h%2!=0) + { + for(row=0;row=h-row)&&(col<=h+row) || (col>h-row)&&(colh-row)&&(col Date: Thu, 7 Oct 2021 09:41:55 +0530 Subject: [PATCH 7/7] Create Pyramid.c --- C/pattern/Pyramid.c | 71 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 C/pattern/Pyramid.c diff --git a/C/pattern/Pyramid.c b/C/pattern/Pyramid.c new file mode 100644 index 00000000..7720382e --- /dev/null +++ b/C/pattern/Pyramid.c @@ -0,0 +1,71 @@ +// n'th line has n number of stars +// * +// * * +// * * * +// * * * * +#include +#include +void main() +{ + int row,col,h; + printf("enter height\n"); + scanf("%d",&h); + if(h%2!=0) + { + for(row=0;row=h-row)&&(col<=h+row) || (col>h-row)&&(colh-row)&&(col