If you want the blank line to be printed...
....after your string just add "\n"at the end of it, like in this example:
print "hello\n"
and blank line will be printed after "hello".
.... before your string just add "\n" in the beggining of it, like in this example:
print "\nhello"
.... in other cases, just write the word print, like in this example:
print
Wednesday, November 12, 2014
Sunday, November 9, 2014
How to unlock the keyboard on windows 8
If, as I actually did, you got by accident, your keyboard locked on windows 8, just watch the video below to find out how to solve your problem:
Wednesday, October 29, 2014
How to create a string array on VBA?
Dim myarray As Variant
myarray = Array("this", "is", "an", "array")
Friday, September 19, 2014
How to print a variable in JavaScript
var i = "Hello"
console.log (i)
console.log (i)
How to print a string in JavaScript
console.log("Hello")
Saturday, September 6, 2014
How to print a variable value in TCL
Just be sure about the existence of the variable simply "a" and write:
puts $a
For beginners: If you are learning and wanting to run a Tcl program for the very first time, try to write the world's most famous program like this:
set a "Hello World!"
puts $a
Now, guess want you are expected to get. ;)
puts $a
For beginners: If you are learning and wanting to run a Tcl program for the very first time, try to write the world's most famous program like this:
set a "Hello World!"
puts $a
Now, guess want you are expected to get. ;)
New language on this blog TCL-TK
Lately, I have been using TCL-TK a lot on some small projects that I am doing, that is mainly why I haven't been writing a lot during the last weeks. So, I thought it would be a good idea to talk a bit about it.
First of all, do you know what is TCL-TK about? If not, just check it here and here.
On the next posts I will teach you some basic TCL commands.
First of all, do you know what is TCL-TK about? If not, just check it here and here.
On the next posts I will teach you some basic TCL commands.
Subscribe to:
Posts (Atom)