Posted by: suruchee March 21, 2009
c# question. confused on one part
Login in to Rate this Post:     0       ?        
you are missing a NOT EQUAL TO in

while (empname !== 'z' || empname=='Z')

it should rather be :

while (empname != 'z' || empname!='Z')

you dont need !== ( makes no sense to me) ,  use !=

it runs your while loop till  empname has anything else than a 'z' or a 'Z'.

Last edited: 21-Mar-09 11:18 PM
Read Full Discussion Thread for this article