Programmation facile
Résolu
guibbor
Messages postés
213
Date d'inscription
Statut
Membre
Dernière intervention
-
guibbor Messages postés 213 Date d'inscription Statut Membre Dernière intervention -
guibbor Messages postés 213 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
je ne comprends pas pourquoi ce code ne s'execute pas svp???
merci.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<script language=JavaScript>
function calcule() {
var s =0;
var nb=1000;
for(i=1;i<=nb;i++) {
a$=i.toString()
for(j=0;j<a$.length;j++) {
if (a$.charAt(j)=="0") {
s++
}
}
}
question = prompt(" Entre le mot de passe :")
alert (s)
if (question==s) {
alert("Bravo!!")
} else {
alert("reessaye")
}
}
</script>
je ne comprends pas pourquoi ce code ne s'execute pas svp???
merci.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<script language=JavaScript>
function calcule() {
var s =0;
var nb=1000;
for(i=1;i<=nb;i++) {
a$=i.toString()
for(j=0;j<a$.length;j++) {
if (a$.charAt(j)=="0") {
s++
}
}
}
question = prompt(" Entre le mot de passe :")
alert (s)
if (question==s) {
alert("Bravo!!")
} else {
alert("reessaye")
}
}
</script>
A voir également:
- Programmation facile
- Application de programmation - Guide
- Programmation envoi sms - Guide
- Programmation vb - Télécharger - Langages
- Programmation binaire - Guide
- Programmation télécommande porte de garage brico depot - Forum Matériel & Système