Jump to content
Sigrian

Writeln (text and variables)

Recommended Posts

I have this small problem regarding Writeln, is it possible to put text and variables in one function?

I remember learning Turbo Pascal at school and this was working for sure:

[...]

var

x : Integer;

[...]

WriteLn('Value of x = 'x);

[...]

Scar on the other hand gives me this:

Complier Error Invalid number of parameters

Is there any way of making it possible in Scar? For now I'm just using:

WriteLn('Value of x =');

WriteLn(x);

I wanted to make it more clear though for putting it in one line.

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...