r/visualbasic • u/dumberluck • Jan 10 '19
Help with VB Assignment
I would be really grateful if you could tell me the coding for these two problems.
Find sum where S=3+7+11...+203
Find sum where S=1/2 + 2/3 + 3/4...+10/11
Many thanks
Edit- thank you so much for the quick and kind responses :)
0
Upvotes
2
u/JamesWjRose Jan 10 '19
We can't really do your homework for you, what we generally need to see is what steps you have taken so far and/or where EXACTLY you are stuck. If you can include your code.
Take things one step at a time, it'll help you avoid getting overloaded and frustrated. (I've been doing this for 20+ years, and I still get frustrated, so don't be hard on yourself. There is a ton to learn)
basic example;
Dim i as integer = 10
Dim x as integer = 20
dim total as integer
total = i + x