We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, you may find it is not as difficult as you think!
But...some hints:
This isn't a difficult task: you almost certainly know how to read a string in from the user, so there is no need to mention that bit.
When you read the string in, it sits in an array of characters, so you are going to need a loop to look at each character in turn: a for loop is probably the best:
int index;
...
for (index = 0; lineFromUser[index] != '\0'; index++)
{
...
}
Inside the loop, you can get each character in turn by looking at lineFromUser[index] - which will give you each character in turn.
You presumably know how to output a number using printf or similar? So I don't need to cover that bit, either.
All you need to do is convert the character to an integer and output it, followed by a space...
myInteger = (int) myCharacter;
Should do that bit...