Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: INPUT SEQUENCES PLS HELP
katiet
Newbie

Posts: 1
Registered: 4/6/2005
Location: uk
Member Is Offline
posted on 4/6/2005 at 03:47 PM Reply With Quote
INPUT SEQUENCES PLS HELP


Hi anyone, I have tired adn tried to solve this but I cant, i keep getting an error..can anyone help me pls...
I need to oinput sequences of alpha char. alwasy ending with z i want the program to output the number of times the character a was include din the input sequence and i caem up with
var letter, total;
letter = window.prompt('Please enter a letter, z to stop', '');
while (letter != 'z')
{
total = 0;
if letter ='a'
{
total = total + 1
}
letter = window.prompt('Please enter a letter, z to stop', '')
}
document.write('The number of 'a's you have input is ' + total)

</SCRIPT>
</HEAD>

but its not working.. i cant see why.. someone help please t hank you
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004