Hi, I am a new member.
And also kind of new to Visual Basics.
I needed a little help on Visual basics, console application.
I'll be so happy if anyone can help me.
Well,The attached picture shows what i need to do using arrays and for loops. Attachment 99071
I've done the first one, but i couldn't do the code for the second one.
For the first question I got:
For i = 0 To 9
x(i) = (i + 1)
Next i
sum = 0
For i = 0 To length - 1
sum += x(i) ^ 2
Console.WriteLine(sum)
Next i
And for the second one I basically have to do 2 * 100. But for some reason I couldn't implement it to the code.
Can someone please help me?
Thank you. :):wave:
And also kind of new to Visual Basics.
I needed a little help on Visual basics, console application.
I'll be so happy if anyone can help me.
Well,The attached picture shows what i need to do using arrays and for loops. Attachment 99071
I've done the first one, but i couldn't do the code for the second one.
For the first question I got:
For i = 0 To 9
x(i) = (i + 1)
Next i
sum = 0
For i = 0 To length - 1
sum += x(i) ^ 2
Console.WriteLine(sum)
Next i
And for the second one I basically have to do 2 * 100. But for some reason I couldn't implement it to the code.
Can someone please help me?
Thank you. :):wave: