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 +#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; +} 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 +#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