Bonjour tout le monde!
Mon code a une petite problème!!! Il ne marche passss :/

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <stdio.h>
#include <math.h>
#include <string.h>
 
int main (void)
{
    char voyelles[13]={'a','e','i','o','u','y','A','E','I','O','U','Y'};
    char text[50];
    int longuerText = 0;
    int i;
 
    printf("Entrez votre texte ici : ");
    fgets(text, 50, stdin);
    longuerText = strlen(text) - 1;
 
    printf("le text a %d caracthers !\n", longuerText);
 
    for(i=0; i!=longuerText;i++)
    {
        if(text[i]=='a')
        {
            i++;
        }
    }
    if (i >= 1)
    {
        printf("Il y a %d voyelles dans votre texte !", i);
    }
    else if (i < 1)
    {
        printf("Un mot sans voyelle?WTF???");
    }
    return 0;
}