From cd177c38f31fea2b7a2d5bcbe6edc71d6dfcaeae Mon Sep 17 00:00:00 2001 From: redfedted <2000nirmalgm@gmail.com> Date: Fri, 2 Oct 2020 20:25:54 +0530 Subject: [PATCH 1/3] Added 2 c programs --- C/README.md | 5 ++-- C/program-58/Program.c | 24 ++++++++++++++++ C/program-58/READEME.md | 4 +++ C/program-59/READEME.md | 4 +++ C/program-59/program.c | 64 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 C/program-58/Program.c create mode 100644 C/program-58/READEME.md create mode 100644 C/program-59/READEME.md create mode 100644 C/program-59/program.c diff --git a/C/README.md b/C/README.md index a80634a0..6717a909 100644 --- a/C/README.md +++ b/C/README.md @@ -49,6 +49,7 @@ | Program-45 | Program to illustrate the above given pattern of numbers. | | Program-46 | Program to convert binary number to decimal | | Program-47 | Program to print kaprekar number in a given range | - - +| Program-58 | Program to find the sum of elements between indexes | +| Program-59 | Program to Search Students details in a list | + | diff --git a/C/program-58/Program.c b/C/program-58/Program.c new file mode 100644 index 00000000..709d4d23 --- /dev/null +++ b/C/program-58/Program.c @@ -0,0 +1,24 @@ + #include +void main() + +{ + //float n[10]; + int i,sum,a,b,x; + printf("enter the size of elements\n"); + scanf("%d", &x); + float n[x]; + printf("enter the values\n"); + for (i=0;i +#include + +typedef struct student +{ + + char name[25]; + char usn[15]; + float cgpa; +} S; +S s[70]; + + +void search(char name[],int n) +{ + + int i,j; + // printf("%s\n",name); + for(i=0;i Date: Fri, 2 Oct 2020 20:27:37 +0530 Subject: [PATCH 2/3] Update README.md --- C/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C/README.md b/C/README.md index 6717a909..623e6fb1 100644 --- a/C/README.md +++ b/C/README.md @@ -51,5 +51,5 @@ | Program-47 | Program to print kaprekar number in a given range | | Program-58 | Program to find the sum of elements between indexes | | Program-59 | Program to Search Students details in a list | - | + From 60015947feb89d37a2e4b91ee8e9758633622f26 Mon Sep 17 00:00:00 2001 From: Swasthik Shetty <42874695+swaaz@users.noreply.github.com> Date: Fri, 2 Oct 2020 21:21:18 +0530 Subject: [PATCH 3/3] Rename readme.txt to readme.md --- C/program-25/{readme.txt => readme.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename C/program-25/{readme.txt => readme.md} (100%) diff --git a/C/program-25/readme.txt b/C/program-25/readme.md similarity index 100% rename from C/program-25/readme.txt rename to C/program-25/readme.md