Greetings, The code below is compiling in Repl.it , Julia 1.3.
I am teaching myself and my high school students how to use the printf macro.
When I compile, the display flashes on my Windows computer. Any suggestions to make the output display permanently and not briefly flash its results?
The code is shown below.
Blockquote
Julia 1.3
begin
using Pkg
Pkg.add.(“Printf”)
using Printf
end
floatvalue = 0.02
@printf(“the floating point value is %f”, floatvalue)
floatvalue2 = 1.29
@printf(“the value of %f + %f = %d”, floatvalue, floatvalue2, floatvalue + floatvalue2)
Blockquote