April 28, 2012

trouble with c

hey, i'm trying to learn c so i wrote a program that doesn't do exactly what i want it to, try as i might i couldn't find the bug so i was hoping you could help me out.

here's the program: http://pastebin.com/1uYraxeM

and here's the input, output, and expected output: http://pastebin.com/7bmEuvP8

any help you could give me i would be very greatful for

Click Here!