September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
10
Task/FizzBuzz/Apex/fizzbuzz.apex
Normal file
10
Task/FizzBuzz/Apex/fizzbuzz.apex
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
for(integer i=1; i <= 100; i++){
|
||||
String output = '';
|
||||
if(math.mod(i, 3) == 0) output += 'Fizz';
|
||||
if(math.mod(i, 5) == 0) output += 'Buzz';
|
||||
if(output != ''){
|
||||
System.debug(output);
|
||||
} else {
|
||||
System.debug(i);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue