.net - How can I fix my code to correctly print "Hello World!" -


i have code need fix print "hello world!". reason prints letters scrambled.

sub main()     dim s string = "hello world!"     parallel.for(0, s.length, sub(i)                                 console.write(s(i))                               end sub)     console.read() end sub 

any suggestions?

sub main()     console.write("hello world!") end sub 

if must print 1 character @ time, write:

sub main()     dim s string = "hello world!"     dim integer     i=0 s.length-1         console.write(s(i))     end end sub 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -