String with spaces

how to input in order given below
1.input variable
2.then while loop
3.then again input variable
4.strings with spaces
5.output some calculated value

sorry bro !
wrong answer

i guess this might help you !