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;
}
Desktop Linux ganha fôlego enquanto distros refinam experiência e segurança
Wayland em alta, IA em debate e novos ventos para distros e devices
Qt 6.10 e Python 3.14 puxam o ritmo do software livre nesta quarta
Atualizações de Apps, Desktop e Kernel agitam o ecossistema Linux nesta terça-feira
Como mudar o nome de dispositivos Bluetooth via linha de comando
Adicionando o repositório backports no Debian 13 Trixie