Scritpt shell
anisRJ
Messages postés
1
Date d'inscription
Statut
Membre
Dernière intervention
-
Sugel Messages postés 4859 Statut Membre -
Sugel Messages postés 4859 Statut Membre -
comment je peut faire un controle d'un ensemble des variables dans la meme boucle
en laguage c =================>
do
{
srand( time(NULL));
a=rand()%9999;
mille_a=a/1000;
cent_a=(a%1000)/100;
dix_a=((a%1000)%100)/10;
un_a=((a%1000)%100)%10;
}
while((mille_a==cent_a)||(mille_a==dix_a)||(mille_a==un_a)||(cent_a==dix_a)||(cent_a==un_a)||(dix_a==un_a));
en laguage c =================>
do
{
srand( time(NULL));
a=rand()%9999;
mille_a=a/1000;
cent_a=(a%1000)/100;
dix_a=((a%1000)%100)/10;
un_a=((a%1000)%100)%10;
}
while((mille_a==cent_a)||(mille_a==dix_a)||(mille_a==un_a)||(cent_a==dix_a)||(cent_a==un_a)||(dix_a==un_a));
A voir également:
- Scritpt shell
- Classic shell - Télécharger - Personnalisation
- Secure shell - Télécharger - Divers Web & Internet
- Shell infrastructure host c'est quoi - Guide
- Shell startup windows 10 - Guide
- Shell do while ✓ - Forum Shell