diff --git a/Contributor.md b/Contributor.md index e16d9aeb..f649dc91 100644 --- a/Contributor.md +++ b/Contributor.md @@ -14,6 +14,7 @@ This is a repo created to remember the Hacktober Fest organized by Github, Digit - [Ema Fazillah](https://github.com/emafazillah) | [No school](https://twitter.com/hashtag/noschool?lang=en) - [Shubham Verma](https://github.com/shubhamvrm) | [Jamia Millia Islamia](https://www.jmi.ac.in) - [Abhinav Akhil](https://github.com/abhinavakhil) +- [Joydeep Paul] (https://github.com/jdpaul25) _Please follow the github Markdown format strictly else PR request might get neglected._ _Change the demo details and enter your details there, make sure to leave a demo markdown code there for other as it was before._ diff --git a/dynamic_programming/STAR25.C b/dynamic_programming/STAR25.C new file mode 100644 index 00000000..96ac68bf --- /dev/null +++ b/dynamic_programming/STAR25.C @@ -0,0 +1,30 @@ +/* print this pattern: + ***** + * *** + ** ** + *** * + ***** +*/ +#include +#include +void main() +{ + int n,i,j; + clrscr(); + printf("enter the no. of layers:"); + scanf("%d",&n); + for(i=1;i<=n;i++) + { + for(j=1;j<=n;j++) + { + if(i==1||i==n) + printf("*"); + else if (i==j) + printf(" "); + else + printf("*"); + } + printf("\n"); + } + getch(); +} \ No newline at end of file