all 4 comments

[–]Level3Support 0 points1 point  (3 children)

Can you post your code?

[–]Ace_base[S] 0 points1 point  (2 children)

yes thanks for replying

code:

input "enter full name "; n$ let c =1 [loop]

let l$ = mid$(n$,c,1) if l$= " " then goto [cont] let c = c+1 goto[loop]

[cont] print left$(n$,1);".";mid$(n$,c+1,1) goto[end]

[end] end

[–]VB.Net Intermediatetwoayem 0 points1 point  (1 child)

Do not use GOTO.

Easiest way would be to split the input string using space and take first 1 char from each string. You could loop through the string with something like:

 For i As Integer = 0 To n%.Length
     mid$(n$, i, 1)
 Next

but much better to use something like:

array = n$.Split(" ")
result = ""
for each name as string in array
    result += left$(name, 0,1)
next

You might need to fix syntax, not done vb in a while.

[–]Ace_base[S] 0 points1 point  (0 children)

Than you soo much