From fdd4455a405cd99618adf105649f9871292109ec Mon Sep 17 00:00:00 2001 From: Kanhaiya2206 Date: Wed, 16 Oct 2019 17:47:12 -0700 Subject: [PATCH 1/4] update --- kanhaiya.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 kanhaiya.c diff --git a/kanhaiya.c b/kanhaiya.c new file mode 100644 index 0000000..9c70000 --- /dev/null +++ b/kanhaiya.c @@ -0,0 +1,10 @@ +#include +int main() +{ +int a,b,c; +printf("enter two numbers"); +scanf("%d%d",&a,&b); +c=a+b; +printf("sum=%d",c); +return 0; +} \ No newline at end of file From e8ef35f61f486f7c36a40962d75efa9af2775e7c Mon Sep 17 00:00:00 2001 From: Kanhaiya2206 <56592736+Kanhaiya2206@users.noreply.github.com> Date: Fri, 18 Oct 2019 10:14:41 +0530 Subject: [PATCH 2/4] Add files via upload --- patternc.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 patternc.c diff --git a/patternc.c b/patternc.c new file mode 100644 index 0000000..e5905ef --- /dev/null +++ b/patternc.c @@ -0,0 +1,34 @@ +#include +int main() +{ + int i,j,x,y; + for(i=1;i<=5;i++) + { + for(j=1;j<=5;j++) + { + if(i+j<=5) + printf(" "); + else + printf("* "); + } + printf("\n"); + } + for(x=1;x<=4;x++) + { + for(y=4;y>=1;y--) + { + if(x+y<=5) + printf(" *"); + else + printf(" "); + } + printf("\n"); + } + + return 0; + + + + + +} \ No newline at end of file From deee7fb4b16e671b0832ab56d46ed14c1af7413b Mon Sep 17 00:00:00 2001 From: Kanhaiya2206 <56592736+Kanhaiya2206@users.noreply.github.com> Date: Fri, 18 Oct 2019 10:18:20 +0530 Subject: [PATCH 3/4] Add files via upload --- aabb.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 aabb.c diff --git a/aabb.c b/aabb.c new file mode 100644 index 0000000..dc6a620 --- /dev/null +++ b/aabb.c @@ -0,0 +1,32 @@ +#include +int main() +{ + int i,j; char ch='A'; + for(i=1;i<=5;i++) + { + for(j=5;j>=1;j--) + { + if(i+j>=6) + printf("%c",ch); + else + printf(" "); + + } + ch++; + printf("\n"); + } + + + + + + + + + + + + + + +} From 21d15d9b98ef6fb060dbbb6f619a600188eb22b5 Mon Sep 17 00:00:00 2001 From: Kanhaiya2206 <56592736+Kanhaiya2206@users.noreply.github.com> Date: Fri, 18 Oct 2019 10:20:28 +0530 Subject: [PATCH 4/4] Add files via upload --- abc.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 abc.c diff --git a/abc.c b/abc.c new file mode 100644 index 0000000..7161310 --- /dev/null +++ b/abc.c @@ -0,0 +1,24 @@ +#include +int main() +{ +int i,j; +for(i=1;i<=5;i++) +{ + for(j=1;j<=5;j++) + { + if(i+j<=6) + printf(" %c ",64+j); + else + printf(" "); + } + printf("\n"); + } + + return 0; + + + + +} + +