Данный сайт активно использует технологию JavaScript.
Пожалуйста, включите JavaScript в вашем браузере.
Live
PTR
10.2.7
PTR
10.2.6
Бета
Drop by and say hi! (Recycle Bin)
Ответить
Вернуться на главную страницу форума
Сообщение от
Adamsm
Lol, the Monk forum has disappeared.
Edit: And now it's back.
Сообщение от
Lombax
Just came home from a night at the hospital.
Сообщение от
530888
This post was from a user who has deleted their account.
Сообщение от
Lombax
Was probably my appendix(?), but I feel a lot better now.
Сообщение от
530888
This post was from a user who has deleted their account.
Сообщение от
240140
This post was from a user who has deleted their account.
Сообщение от
Thror
Blood DK's can be pretty stubborn.
Сообщение от
OverZealous
DK's can be pretty stubborn.
I know
:(
Сообщение от
240140
This post was from a user who has deleted their account.
Сообщение от
Thror
I find it amazing how deep under my skin did Bastion get. Is it because of the Narrator? The characters, the music, the story, all have a special place in my mind. I have a bunch of Bastion songs in my playlist and the moment they pop in I get chills. Zulf's theme even brings almostears into my eyes.
Сообщение от
Pwntiff
I hear good games will do that to you.
Сообщение от
Interest
Ok, Interest. Another one. Im trying to get it to count from 1 to 20, and say Fizz on everything divisible by 3, and Buzz on everything divisible by 5, unless the number is divisible by both, and then I want it to say FizzBuzz. This time it just gives me an error:
var i;
for (i=1; i<=20; i++) {
if ( i % 3 === 0; i % 5 === 0) { \\The problem is on this line. I'm not sure how to format it.
console.log("FizzBuzz")
}
else{
if ( i % 3 === 0 ) {
console.log("Fizz")
}
else{
if ( i % 5 === 0 ) {
console.log("Buzz")
}
else {
console.log(i)
}
}
}
}
Ok, I figured it out. This may have been an issue with my math skills, and not my programming skills. I was trying to do two qualifiers for my if, which was, divisible by 3, and divisible by 5. Instead, I just said divisible by 15. That worked, but I would still like to know how to do two qualifiers, if I should need to in the future.
Uh yeah I probably should've said something, but I actually went to sleep after that last post. >_<
Blood DK's can be pretty stubborn.
Troofax.
Сообщение от
Pwntiff
You need to use the logical AND (&&) to compare multiple conditions, that or nested if statements, but that's just bad coding.
Option A
if ( i % 3 === 0 && i % 5 === 0 ) {
Divisible by 3 and 5
}
Option B
if ( i % 3 === 0 ) {
Disivible by 3
if ( i % 5 === 0 ) {
Divisible by 3 and 5
}
}
Сообщение от
Patty
Blood DKs can be pretty stubborn.
Fixed. :P
Сообщение от
Thror
Ohu. ._.
Сообщение от
Azazel
Watched Bowling Columbine today. Pretty good movie. For once, an American movie that actually criticises America. I really enjoyed it.
Сообщение от
Pwntiff
MERICA AM GREETEST!
Сообщение от
OverZealous
I feel the whole Morality thread is a big circle...
Сообщение от
Pwntiff
I feel the whole Morality thread is a big circle...
Yep, I stepped back in because there were other people joining the discussion, but discussing Shades of Grey with Sold is like discussing the age of Earth with a YEC.
Сообщение от
Thror
I feel the whole Morality thread is a big circle...
Hahah. Oviously. Same as 90% of "debate" topics that get past page 2.
Ответить
Вы не авторизованы.
Войдите
или
зарегистрируйтесь
, чтобы оставить сообщение.