Изменить 'du1/program.c'

This commit is contained in:
Oleksandr Hryshchenko 2021-02-23 16:33:57 +00:00
parent e6bedd5a29
commit 096061440a

View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include <ctype.h>
#include <string.h>
int main (){
char c[100];
@ -30,11 +31,11 @@ int main (){
for(int i = 0; i < 100; i++){
if(c[i] == '\n') break;
if(isupper(c[i]))
printf(tolower(c[i]));
printf("%c", tolower(c[i]));
else if(islower(c[i]))
printf(toupper(c[i]));
printf("%c", toupper(c[i]));
else
printf(c[i]);
printf("%c", c[i]);
}
}
//counter++;