Name tag
Print a name tag from two initials and an age read from input. For the input A B 19 the tag reads:
HELLO my name is
A.B. (age 19)
The starter reads the input and leaves the first initial in first_r, the second in last_r, and the age in age_r. Add one format string to .data and print the whole tag with a single printf.
Each format specifier (a % code such as %d) takes the next argument register in order: the first reads w1, the second w2, the third w3. %c prints the character whose code is in the register, and %d prints a 32-bit signed whole number, so w registers are the right width for all three. A \n in the middle of the format string starts the second line.
What is checked
- with input
A B 19the output is exactly the two lines above - the program exits cleanly
- the program also runs on inputs you do not see, so it has to work for any input, not only this one
specification
We run your program on the input above and on the hidden ones, and compare what it does. Nothing is matched against a stored solution.