Below is my code. I'm trying to put the output of function winter into textarea. Someone, please help. I'm dying.
<html>
<head>
<script>
function winter(){
for(x=1;x<10;++x){
for(y=0;y<10;++y){
for(z=0;z<10;++z){
a=(x*x*x+y*y*y+z*z*z);
b=(x*100+y*10+z);
if(a==b){
**//output textarea**
}
}
}
}
}
</script>
</head>
<body>
<input type="button" onclick="winter();">
<textarea>
**<!--output textarea-->**
</textarea>
</body>
</html>
Aucun commentaire:
Enregistrer un commentaire