From 1ee7e6cbbe97f16812cdd2d571245a7f7a195e60 Mon Sep 17 00:00:00 2001 From: Eli Lichtblau Date: Tue, 26 Jul 2016 14:23:53 -0400 Subject: [PATCH 1/4] sum.c by Eli Lichtblau --- sum.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 sum.c diff --git a/sum.c b/sum.c new file mode 100644 index 0000000..e5a5e2b --- /dev/null +++ b/sum.c @@ -0,0 +1,48 @@ +/*WARNING: Before reading this you should know this isnt the nicest code, however I am very tired so I dont think I can change it and have the energy for the challenge*/ + + +#include + +int main() +{ + + printf("Please input size of a array: "); + int ArraySize; + scanf("%d", &ArraySize); + int input[ArraySize]; + + for(int i = 0;i Date: Tue, 26 Jul 2016 20:12:46 -0400 Subject: [PATCH 2/4] Yea I am too tired to figure this out, see if you can, odd 'feature' --- vowels.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 vowels.c diff --git a/vowels.c b/vowels.c new file mode 100644 index 0000000..764867d --- /dev/null +++ b/vowels.c @@ -0,0 +1,44 @@ +#include +#include +#include +int main() +{ + int inputlength = 50; + char checkedInput[inputlength]; + char input[inputlength]; + printf("Please input a string of letters: \n"); + fgets(input,sizeof(input), stdin); + + for(int i = 0;i Date: Fri, 5 Aug 2016 10:05:04 -0400 Subject: [PATCH 3/4] not sure if it even has data --- vowel.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 vowel.c diff --git a/vowel.c b/vowel.c new file mode 100644 index 0000000..83bb97f --- /dev/null +++ b/vowel.c @@ -0,0 +1,31 @@ +#include +#include + +int main() +{ + int size = 50; + char input[size]; + int del; + printf("Please input a string: "); + fgets(input, sizeof(input), stdin); + + for(int i =0;i Date: Fri, 5 Aug 2016 10:05:58 -0400 Subject: [PATCH 4/4] prob doesnt work --- unique.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 unique.c diff --git a/unique.c b/unique.c new file mode 100644 index 0000000..8b9ffc1 --- /dev/null +++ b/unique.c @@ -0,0 +1,33 @@ +#include +#include + +int main() +{ + char string[100]; + int arr[300]; + + printf("Please type string: "); + fgets(string, sizeof(string), stdin); + + + + + for(int i = 0;i<3;i++) + { + int temp = string[i]; + + arr[temp] +=temp; + + if(arr[temp] > temp) + { + printf("The string is not unique\n"); + break; + } + + + } + + + + return 0; +}