pvjc22/du1/program.c
Peter Sabol 7318d5a7bb funguje
2022-03-03 13:08:40 +01:00

35 lines
704 B
C

#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
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;
}
}
*/