Bad finish is come from the little segment from the output of the program.......try program different.
The best way to learn is trial error.
Forum Rules