Note that there are some explanatory texts on larger screens.

plurals
  1. USRichard Powell
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COThis depends on where wamp looks for files. Git add adds any untracked files to your repository. Git commit will then update your local version (you will need to write a change log). If you then wanted to update the remote repository you will then have to use git push and everyone else will have to use git pull to get the changes you have made into their local copy. If wamp looks at your local copy you shouldn't have to use any git commands to view the files but if it looks at the remote server you will have to commit then push.
      singulars
    2. COThere would also be a problem when using a number divisble by both 3 and 5 because the first if would be hit so "FizzBuzz" would be printed but then the other ifs would also be checked so it would then go on to print"Fizz" and then "Buzz" again so you would get 3 lines output, one with "FizzBuzz", then one with "Fizz" and then one with "Buzz".
      singulars
    3. COHi sure I'll try and explain for you. If the else if's weren't there, it would check each if statement to see if it is true. This is fine when (i%5==0) is true but if it is false the last else will be hit even if (i%5==0). For example, if you set i = 6 then run through in your head, (i%5==0 && i%3==0) is false so skip that if, (i%3==0) is true so print "Fizz", (i%5==0) is false so go to the else. This means "6" would also be printed which is not what we want. Using else if means that once we get an if that is true, the rest of the other ifs are ignored.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload