-2
#include<stdio.h>
#include<conio.h>
main()
{
char texto[41];
int n,i;
printf("Entre com um texto\n"); gets(texto);
for(n=0;texto[n]!='\0';n++);
i=0;
while(texto[i]!='\0')
{
if (texto[i]== 'A' || texto[i]== 'a' || texto[i]== 'E' || texto[i]=='e' || texto[i]== 'I' || texto[i]== 'i' || texto[i]== 'O' || texto[i]== 'o' || texto[i]== 'U' || texto[i]== 'u')
texto[i]==' ';
}
i=i+1;
puts (texto);
}
I just started seeing C and I can’t seem to figure out this exercise.
https://ideone.com/nJZxyD
– hkotsubo