From 4166dea25b5117496202beb9ea159a96f3f4a941 Mon Sep 17 00:00:00 2001 From: sanjay-xdr <55450200+sanjay-xdr@users.noreply.github.com> Date: Thu, 1 Oct 2020 10:18:31 +0530 Subject: [PATCH 1/9] Add files via upload --- C/program-47/program 47.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 C/program-47/program 47.c diff --git a/C/program-47/program 47.c b/C/program-47/program 47.c new file mode 100644 index 00000000..0a87a07c --- /dev/null +++ b/C/program-47/program 47.c @@ -0,0 +1,33 @@ +#include +#include +#include + +int main() +{ + /* Length of the password */ + int length; + int num; + int temp; + printf("Enter the length of the password: "); + scanf("%d", &length); + printf("\nEnter the number of passwords you want: "); + scanf("%d", &num); + /* Seed number for rand() */ + srand((unsigned int) time(0) + getpid()); + + while(num--) + { + temp = length; + printf("\n"); + while(temp--) { + putchar(rand() % 56 + 65); + srand(rand()); + } + + temp = length; + } + + printf("\n"); + + return EXIT_SUCCESS; +} From e5eac41d67a831c208c374ea24801e2cdc664ce2 Mon Sep 17 00:00:00 2001 From: sanjay-xdr <55450200+sanjay-xdr@users.noreply.github.com> Date: Thu, 1 Oct 2020 10:19:58 +0530 Subject: [PATCH 2/9] Update README.md --- C/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/C/README.md b/C/README.md index 9251eeaa..22050aa9 100644 --- a/C/README.md +++ b/C/README.md @@ -48,6 +48,7 @@ | Program-44 | Program for implementation of the approach | | Program-45 | Program to illustrate the above given pattern of numbers. | | Program-46 | Program to convert binary number to decimal | +| Program-47 | Program to generate strong password | From 6ebad9f1c2a9cc6ab65346e5bd5d6c3bb3855846 Mon Sep 17 00:00:00 2001 From: sanjay-xdr <55450200+sanjay-xdr@users.noreply.github.com> Date: Thu, 1 Oct 2020 11:28:32 +0530 Subject: [PATCH 3/9] Add files via upload --- Python/program-4/Program 4.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Python/program-4/Program 4.py diff --git a/Python/program-4/Program 4.py b/Python/program-4/Program 4.py new file mode 100644 index 00000000..77c405f9 --- /dev/null +++ b/Python/program-4/Program 4.py @@ -0,0 +1,9 @@ +# Store input numbers +num1 = input('Enter first number: ') +num2 = input('Enter second number: ') + +# Add two numbers +sum = float(num1) + float(num2) + +# Display the sum +print('The sum of {0} and {1} is {2}'.format(num1, num2, sum)) From c8c8542b8dbc57c2ddccb4d7c8f7ae8e3c135609 Mon Sep 17 00:00:00 2001 From: Vaidehi Bhardwaj <61655574+Vaidehi0421@users.noreply.github.com> Date: Thu, 1 Oct 2020 12:55:04 +0530 Subject: [PATCH 4/9] Added Program 2 in java --- Java/program-2/README.md | 9 +++++++++ Java/program-2/program.java | 26 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 Java/program-2/README.md create mode 100644 Java/program-2/program.java diff --git a/Java/program-2/README.md b/Java/program-2/README.md new file mode 100644 index 00000000..7ed914ac --- /dev/null +++ b/Java/program-2/README.md @@ -0,0 +1,9 @@ +Program 2 + +Given a String,check if it is a palindrome or not. + +Variable description +s= Input String +start= Starting index of String s +end= Last index of String s +flag= Variable to mark if the String is not a Palindrome \ No newline at end of file diff --git a/Java/program-2/program.java b/Java/program-2/program.java new file mode 100644 index 00000000..a9d9adda --- /dev/null +++ b/Java/program-2/program.java @@ -0,0 +1,26 @@ +import java.io.*; +import java.util.*; +class prg{ + public static void main(String args[]) + { + Scanner sc=new Scanner(System.in); + String s=sc.next(); + int start=0; + int end=s.length()-1; + int flag=0; + while(start Date: Fri, 2 Oct 2020 06:48:20 +0530 Subject: [PATCH 5/9] New programs --- .../{armstrong.html => program-3.html} | 0 .../{palindrome.html => program-4.html} | 0 Javascript/program-5/program-5.html | 47 +++++++++++++++++++ Javascript/program-5/read.md | 4 ++ Javascript/program-6/program-6.html | 17 +++++++ Javascript/program-6/read.md | 3 ++ 6 files changed, 71 insertions(+) rename Javascript/program-3/{armstrong.html => program-3.html} (100%) rename Javascript/program-4/{palindrome.html => program-4.html} (100%) create mode 100644 Javascript/program-5/program-5.html create mode 100644 Javascript/program-5/read.md create mode 100644 Javascript/program-6/program-6.html create mode 100644 Javascript/program-6/read.md diff --git a/Javascript/program-3/armstrong.html b/Javascript/program-3/program-3.html similarity index 100% rename from Javascript/program-3/armstrong.html rename to Javascript/program-3/program-3.html diff --git a/Javascript/program-4/palindrome.html b/Javascript/program-4/program-4.html similarity index 100% rename from Javascript/program-4/palindrome.html rename to Javascript/program-4/program-4.html diff --git a/Javascript/program-5/program-5.html b/Javascript/program-5/program-5.html new file mode 100644 index 00000000..69b109fe --- /dev/null +++ b/Javascript/program-5/program-5.html @@ -0,0 +1,47 @@ + + +MATHEMATICAL OPERATIONS OF TWO NUMBERS + + +
+ENTER NUMBER1:
+ENTER NUMBER2:
+ + + + +Reset: +Result: +
+ + + diff --git a/Javascript/program-5/read.md b/Javascript/program-5/read.md new file mode 100644 index 00000000..24771b46 --- /dev/null +++ b/Javascript/program-5/read.md @@ -0,0 +1,4 @@ +# Program-5 +## This is a javascript program for mathematical operations + + diff --git a/Javascript/program-6/program-6.html b/Javascript/program-6/program-6.html new file mode 100644 index 00000000..55d8806f --- /dev/null +++ b/Javascript/program-6/program-6.html @@ -0,0 +1,17 @@ + + + CHARACTER PROCESSING METHODS + + + + + diff --git a/Javascript/program-6/read.md b/Javascript/program-6/read.md new file mode 100644 index 00000000..61cc055a --- /dev/null +++ b/Javascript/program-6/read.md @@ -0,0 +1,3 @@ +# Program-4 +## This is a javascript program for character processing + 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 6/9] 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 7/9] 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 8/9] 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 From 6b0bb0775ae23275848f9f3b5c2d230b26b44043 Mon Sep 17 00:00:00 2001 From: redfedted <2000nirmalgm@gmail.com> Date: Fri, 2 Oct 2020 22:30:13 +0530 Subject: [PATCH 9/9] Updated Readme in C and seperated the programs --- C/README.md | 13 ++++++++++++- C/program-53/Readme.md | 1 + C/program-55/{read.md => readme.md} | 0 C/program-57/{READEME.md => readme.md} | 0 C/program-58/{READEME.md => readme.md} | 0 C/program-59/{READEME.md => readme.md} | 0 .../kaprekar_number.c => program-60/program.c} | 0 C/program-60/readme.md | 4 ++++ 8 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 C/program-53/Readme.md rename C/program-55/{read.md => readme.md} (100%) rename C/program-57/{READEME.md => readme.md} (100%) rename C/program-58/{READEME.md => readme.md} (100%) rename C/program-59/{READEME.md => readme.md} (100%) rename C/{program-47/kaprekar_number.c => program-60/program.c} (100%) create mode 100644 C/program-60/readme.md diff --git a/C/README.md b/C/README.md index 623e6fb1..1cedefea 100644 --- a/C/README.md +++ b/C/README.md @@ -48,8 +48,19 @@ | Program-44 | Program for implementation of the approach | | 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-47 | Program to find the maximum and minimum element in an array| +| Program-48 | Program to check if a number is even or odd | +| Program-49 | Program to find the sum of the digits of the given number | +| Program-50 | Program to check whether a given number is a palindrome or not | +| Program-51 | Program to print duplicates in an array | +| Program-52 | to find whether the given element is present in the array or not | +| Program-53 | Program to find the position of an element in an array | +| Program-54 | Program to check whether two strings are anagrams or not | +| Program-55 | Program to print print a number in binary | +| Program-56 | Program to calculate the number of vowels and consonants in a string | +| Program-57 | Program to calculate the grade | | Program-58 | Program to find the sum of elements between indexes | | Program-59 | Program to Search Students details in a list | +| Program-60 | Program to print kaprekar number in a given range | diff --git a/C/program-53/Readme.md b/C/program-53/Readme.md new file mode 100644 index 00000000..8809d9d9 --- /dev/null +++ b/C/program-53/Readme.md @@ -0,0 +1 @@ +Program to find the position of an element in an array \ No newline at end of file diff --git a/C/program-55/read.md b/C/program-55/readme.md similarity index 100% rename from C/program-55/read.md rename to C/program-55/readme.md diff --git a/C/program-57/READEME.md b/C/program-57/readme.md similarity index 100% rename from C/program-57/READEME.md rename to C/program-57/readme.md diff --git a/C/program-58/READEME.md b/C/program-58/readme.md similarity index 100% rename from C/program-58/READEME.md rename to C/program-58/readme.md diff --git a/C/program-59/READEME.md b/C/program-59/readme.md similarity index 100% rename from C/program-59/READEME.md rename to C/program-59/readme.md diff --git a/C/program-47/kaprekar_number.c b/C/program-60/program.c similarity index 100% rename from C/program-47/kaprekar_number.c rename to C/program-60/program.c diff --git a/C/program-60/readme.md b/C/program-60/readme.md new file mode 100644 index 00000000..6b6770c7 --- /dev/null +++ b/C/program-60/readme.md @@ -0,0 +1,4 @@ +Program 59 + + +Write a program to print kaprekar number in a given range