Hey! Good effort. Just like to say that, you can easily solve this problem in seven lines. You can create a for loop going from 0 to 999 and if the number is divisble by 3 or 5 then total += number.Then print the number. That's it. You don't need to create arrays or anything. But that is just a different way of looking at it. I thought, I would just show you from the my perspective, but AWESOME you got the answer :D
@BrandonioProductions There's no such thing as a for loop in java haha my bad. Still the program you made wasn't very simple and considering you have a lot of learners watching your videos, I think you should have to took a lot more care especially when the problem was this simple.
@sprogsy10 Actually, there is such thing as a for loop in java! But, I do admit it was a little confusing to follow this video, and that's why I didn't label it as an official entry into the Java tutorial series. Keep in mind, I am learning too! I am by no means a master of Java, and I am just teaching what I have learned.
Comment removed
Kess5994 6 days ago in playlist Uploaded videos
Hey! Good effort. Just like to say that, you can easily solve this problem in seven lines. You can create a for loop going from 0 to 999 and if the number is divisble by 3 or 5 then total += number.Then print the number. That's it. You don't need to create arrays or anything. But that is just a different way of looking at it. I thought, I would just show you from the my perspective, but AWESOME you got the answer :D
ilikechess1 2 months ago
This is such a poor solution for such a simple problem.
A) Use a for loop!!!
B) The problem only wants you to find the sum NOT all of the numbers so why do you have a counter and an array.
Absolutely terrible.
sprogsy10 4 months ago
@sprogsy10
A) While loops work just as well, and are actually easier for me... I just don't like for loops that much.
B)Thank you for your response to this video, but, there is no need to insult my program. It gets the job done, and does it well.
BrandonioProductions 4 months ago
@BrandonioProductions There's no such thing as a for loop in java haha my bad. Still the program you made wasn't very simple and considering you have a lot of learners watching your videos, I think you should have to took a lot more care especially when the problem was this simple.
sprogsy10 4 months ago
@sprogsy10 Actually, there is such thing as a for loop in java! But, I do admit it was a little confusing to follow this video, and that's why I didn't label it as an official entry into the Java tutorial series. Keep in mind, I am learning too! I am by no means a master of Java, and I am just teaching what I have learned.
BrandonioProductions 4 months ago
@BrandonioProductions Fair enough.
sprogsy10 4 months ago
@M3andMyMonk3y I watch all his videos I am just surprised that he is not on front page of YouTube.
bfudge85 4 months ago
Great videos! You are a very impressive programmer
M3andMyMonk3y 4 months ago