From 990e0c7a1a683dd83fc67afa1368a09ef6674a32 Mon Sep 17 00:00:00 2001 From: Saurav Jaiswal <42805104+Saurav80@users.noreply.github.com> Date: Mon, 14 Oct 2019 23:23:12 +0530 Subject: [PATCH 1/3] My First commit /* I write HAPPY BIRTHDAY in C programming language */ --- examples/saurav80.c | 121 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 examples/saurav80.c diff --git a/examples/saurav80.c b/examples/saurav80.c new file mode 100644 index 0000000..da86d82 --- /dev/null +++ b/examples/saurav80.c @@ -0,0 +1,121 @@ +#include +#include +#include +int main(){ + char n[10],ch = ';'; + int i,a,b; + for(i=0; i<34; i++) + { + if (i==4||i==6||i==9||i==10||i==13||i==14|| + i==15||i==17||i==18||i==19||i==21||i==23) + printf("%c",ch) ; + else + printf(" ") ; + } + printf("\n"); + + for(i=0; i<34; i++) + { + if(i==4||i==6||i==8||i==11||i==13||i==15|| + i==17||i==19||i==21||i==23) + printf("%c",ch) ; + else + printf(" ") ; + } + printf("\n"); + + for (i=0; i<34; i++) + { + if (i==4||i==5||i==6||i==8||i==9||i==10||i==11|| + i==13||i==14||i==15||i==17||i==18||i==19|| + i==21||i==22||i==23) + printf("%c",ch) ; + else + printf(" ") ; + } + printf("\n"); + + for (i=0; i<34; i++) + { + if (i==4||i==6||i==8||i==11||i==13||i==17||i==22) + printf("%c",ch) ; + else + printf(" ") ; + } + printf("\n"); + + for (int i=0; i<34; i++) + { + if (i==4||i==6||i==8||i==11||i==13||i==17||i==22) + printf("%c",ch) ; + else + printf(" ") ; + } + printf("\n"); + printf("\n"); + + for (i=0; i<34; i++) + { + if (i==1||i==2||i==3||i==5||i==6||i==7||i==9|| + i==10||i==13||i==14||i==15||i==17||i==19|| + i==21||i==22||i==26||i==27||i==30||i==32) + printf("%c",ch) ; + else + printf(" ") ; + } + printf("\n"); + + for(i=0; i<34; i++) + { + if (i==1||i==3||i==6||i==9||i==11|| + i==14||i==17||i==19||i==21||i==23|| + i==25||i==28||i==30||i==32) + printf("%c",ch) ; + else + printf(" ") ; + } + printf("\n"); + + for (i=0; i<34; i++) + { + if (i==1||i==2||i==3||i==6||i==9||i==10|| + i==14||i==17||i==18||i==19||i==21|| + i==23||i==25||i==26||i==27||i==28||i==30|| + i==31||i==32) + printf("%c",ch) ; + else + printf(" ") ; + } + printf("\n"); + + for (i=0; i<34; i++) + { + if (i==1||i==3||i==6||i==9||i==11|| + i==14||i==17||i==19||i==21|| + i==23||i==25||i==28||i==31) + printf("%c",ch) ; + else + printf(" ") ; + } + printf("\n"); + + for (i=0; i<34; i++) + { + if (i==1||i==2||i==3||i==5||i==6||i==7|| + i==9||i==11||i==14||i==17||i==19|| + i==22||i==21||i==25||i==28||i==31) + printf("%c",ch) ; + else + printf(" ") ; + } + printf("\n"); + printf("\n"); + + + + + + + return 0; + +} From 4491809a89ef0f321f21ba46da441f7d5dc87aa7 Mon Sep 17 00:00:00 2001 From: Saurav Jaiswal <42805104+Saurav80@users.noreply.github.com> Date: Mon, 14 Oct 2019 23:38:35 +0530 Subject: [PATCH 2/3] updated --- examples/saurav80.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/saurav80.c b/examples/saurav80.c index da86d82..46293ba 100644 --- a/examples/saurav80.c +++ b/examples/saurav80.c @@ -2,7 +2,8 @@ #include #include int main(){ - char n[10],ch = ';'; + char n[10], + char ch = ';'; int i,a,b; for(i=0; i<34; i++) { From 408822f1beac7e4396064755f9ea0ce896022782 Mon Sep 17 00:00:00 2001 From: Saurav Jaiswal <42805104+Saurav80@users.noreply.github.com> Date: Tue, 15 Oct 2019 11:25:52 +0530 Subject: [PATCH 3/3] NEW UPDATE --- examples/saurav80.c | 156 ++++++++++---------------------------------- 1 file changed, 35 insertions(+), 121 deletions(-) diff --git a/examples/saurav80.c b/examples/saurav80.c index 46293ba..6af6845 100644 --- a/examples/saurav80.c +++ b/examples/saurav80.c @@ -1,122 +1,36 @@ -#include -#include -#include -int main(){ - char n[10], - char ch = ';'; - int i,a,b; - for(i=0; i<34; i++) - { - if (i==4||i==6||i==9||i==10||i==13||i==14|| - i==15||i==17||i==18||i==19||i==21||i==23) - printf("%c",ch) ; - else - printf(" ") ; - } - printf("\n"); - - for(i=0; i<34; i++) - { - if(i==4||i==6||i==8||i==11||i==13||i==15|| - i==17||i==19||i==21||i==23) - printf("%c",ch) ; - else - printf(" ") ; - } - printf("\n"); - - for (i=0; i<34; i++) - { - if (i==4||i==5||i==6||i==8||i==9||i==10||i==11|| - i==13||i==14||i==15||i==17||i==18||i==19|| - i==21||i==22||i==23) - printf("%c",ch) ; - else - printf(" ") ; - } - printf("\n"); - - for (i=0; i<34; i++) - { - if (i==4||i==6||i==8||i==11||i==13||i==17||i==22) - printf("%c",ch) ; - else - printf(" ") ; - } - printf("\n"); - - for (int i=0; i<34; i++) - { - if (i==4||i==6||i==8||i==11||i==13||i==17||i==22) - printf("%c",ch) ; - else - printf(" ") ; - } - printf("\n"); - printf("\n"); - - for (i=0; i<34; i++) - { - if (i==1||i==2||i==3||i==5||i==6||i==7||i==9|| - i==10||i==13||i==14||i==15||i==17||i==19|| - i==21||i==22||i==26||i==27||i==30||i==32) - printf("%c",ch) ; - else - printf(" ") ; - } - printf("\n"); - - for(i=0; i<34; i++) - { - if (i==1||i==3||i==6||i==9||i==11|| - i==14||i==17||i==19||i==21||i==23|| - i==25||i==28||i==30||i==32) - printf("%c",ch) ; - else - printf(" ") ; - } - printf("\n"); - - for (i=0; i<34; i++) - { - if (i==1||i==2||i==3||i==6||i==9||i==10|| - i==14||i==17||i==18||i==19||i==21|| - i==23||i==25||i==26||i==27||i==28||i==30|| - i==31||i==32) - printf("%c",ch) ; - else - printf(" ") ; - } - printf("\n"); - - for (i=0; i<34; i++) - { - if (i==1||i==3||i==6||i==9||i==11|| - i==14||i==17||i==19||i==21|| - i==23||i==25||i==28||i==31) - printf("%c",ch) ; - else - printf(" ") ; - } - printf("\n"); - - for (i=0; i<34; i++) - { - if (i==1||i==2||i==3||i==5||i==6||i==7|| - i==9||i==11||i==14||i==17||i==19|| - i==22||i==21||i==25||i==28||i==31) - printf("%c",ch) ; - else - printf(" ") ; - } - printf("\n"); - printf("\n"); - - - - - - - return 0; - +// ______________________________ +// |created by SAURAV JAISWAL๐Ÿ‡ฎ๐Ÿ‡ณ| +// | Date -- 15/10/2019 | +// |______________________________| + +#include +#include +#include + +#define C L"\u2592" +#define B L"\u2593" +#define A L"\u2594" +void utf16(){_setmode(fileno(stdout),_O_U16TEXT);wprintf(L"\xfeff");} + +int main() { + utf16(); + + fputws(L"๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰",stdout); + + fputws(L"๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ๐ŸŽŠ",stdout); + + + fputws(L"\n\t ยก ยก*ยก ยก", stdout); + +fputws(L"\n\t\t \u2593\u2592\u2592\u2592\u2592\u2593", stdout); + wprintf(L"\n\t\t %s%s%s%s%s%s%s%s%s%s",B,C,C,C,C,C,C,C,C,B); + + wprintf(L"\n\t\t %s%s%s%s%s%s%s%s%s%s%s%s%s%s",B,C,C,C,C,C,C,C,C,C,C,C,C,B); + + wprintf(L"\n\t\t %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\t๐Ÿ—ก๏ธ",B,C,C,C,C,C,C,C,C,C,C,C,C,C,C,B); + wprintf(L"\n\t\t%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A); + +wprintf(L"\n\t ๐ŸŽ‚ HAPPY BIRTHDAY ๐ŸŽ‚"); + + return 0; }