// This code is intended to prompt a user to input five numerical
// values and to output their total value.
`<script>
var total, number;
for (var count = 1, count < 5; count = count + 1)
{
number = parse Float(window.prompt('please enter a number', ''))
}
total = total + number;
document.write('the sum of your five numbers is' total)
</script>`
What's wrong with that? thanks
Aucun commentaire:
Enregistrer un commentaire