What problem are you having? From as far as I can tell, your output is correct (or is that just the expected output?). If there is an error somewhere (compilation, runtime, etc.) please post the...