
Member • Sep 21, 2008
Programming exercise for newbies
So here's a simple programming challenge [for newbies]:-
Write a program that accepts a new text strings, one on each line, but prints a line number before it accepts the input. The lines are then printed out, with each word individually reversed.
That is, the output should look like -
1: Hello, this is The Big K
2: This is line number 2
3: ___
*******************************
1: K giB ehT siht ,olloeH
etc.
I hope you got the problem. Use any damn computer programming language of your choice. The only bet is - you crack this question on your own. The purpose is to make you think, not to test your Google search skills.
All the best.
[Provide all details in comments inside your code]