Enviado em 19/01/2017 - 14:57h
Esta dando 100% de erro, sendo que ta tudo certo, alguém já o fez?#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int main(){
char str[100];
int i,j,count = 1,danca = 0;
char p[1000] = "abcdefghtijklmnopqrstuvxzwyABCDEFGHIJKLMNOPQRSTUVXZWY";
gets(str);
for(i=0;i<strlen(str);i++){
for(j=0;j<strlen(p);j++)
if(str[i] == p[j]){
count++;
break;
}
if(count%2!=0)
str[i] = tolower(str[i]);
else
str[i] = toupper(str[i]);
}
// printf("%d\n",count);
puts(str);
return 0;
}
Aprenda a Gerenciar Permissões de Arquivos no Linux
Como transformar um áudio em vídeo com efeito de forma de onda (wave form)
Como aprovar Pull Requests em seu repositório Github via linha de comando
Dando - teoricamente - um gás no Gnome-Shell do Arch Linux
Como instalar o Google Cloud CLI no Ubuntu/Debian
Mantenha seu Sistema Leve e Rápido com a Limpeza do APT!
Procurando vídeos de YouTube pelo terminal e assistindo via mpv (2025)