Im using pascal. The program i'm making ask the user for their name, after we use that name in a question. Ex: (User types name "Steve". Next line is writeln( 'Steve, what s your favorite color?'). How do I use the variable and include it in my writeln sentance. I'm not use how to write that line of code.
I've put together a(n intentionally) different little Pascal program that shows you how to print variables and text together.
Use the analogy to solve your problem.
If you still have issues, share the code you have so far.
Here's the example:
var name: String;
name := 'Kitty';
writeln('Hello, ', name, '! How do you do?')
Good luck! :)