diff --git a/du1/Makefile b/du1/Makefile new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/du1/Makefile @@ -0,0 +1 @@ + diff --git a/du1/Makefile.c b/du1/Makefile.c new file mode 100644 index 0000000..e69de29 diff --git a/du1/program b/du1/program new file mode 100755 index 0000000..c6d4661 Binary files /dev/null and b/du1/program differ diff --git a/du1/program.c b/du1/program.c index d00491f..e3cb97f 100644 --- a/du1/program.c +++ b/du1/program.c @@ -1 +1,34 @@ -1 +#include +#include +#include + +int main(){ + int counter; + printf("Enter a number: "); + scanf("%d",&counter); + printf("\nPočet riadkov: %d\n",counter); + int i= 0; + int decrypted_string(); + while(1){ + i = getchar(); + if(decrypted_string[i]>='a' && decrypted_string[i]<='z'){ + decrypted_string[i]-=32; + } + if(decrypted_string[i]>='A' && decrypted_string[i]<='Z'){ + decrypted_string[i]+=32; + } + + putchar(i); + i++; + } +} + + + + +/*for(int i=0; decrypted_string[i]!='\0'; i++){ + if(decrypted_string[i]>='a' && decrypted_string[i]<='z'){ + decrypted_string[i]-=32; + } + } +*/