From 36dd8097d78efdd8e8a370175efd9d1adbe8e3c6 Mon Sep 17 00:00:00 2001 From: Peter Sabol Date: Thu, 3 Mar 2022 14:17:54 +0100 Subject: [PATCH] funguje --- du1/program.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/du1/program.c b/du1/program.c index e3cb97f..e69de29 100644 --- a/du1/program.c +++ b/du1/program.c @@ -1,34 +0,0 @@ -#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; - } - } -*/