+
+ R
+
+```
``` r
fizz_buzz <- function(fbnums = 1:50) {
@@ -173,7 +224,13 @@ fizz_buzz <- function(fbnums = 1:50) {
}
```
-## Python
+```{=html}
+
+
+
+ Python
+
+```
``` python
def fizz_buzz(num):
@@ -187,43 +244,12 @@ def fizz_buzz(num):
print(num)
```
-## Java
-
-``` java
-public class FizzBuzz
-{
- public static void fizzBuzz(int num)
- {
- if (num % 15 == 0) {
- System.out.println("FizzBuzz");
- } else if (num % 5 == 0) {
- System.out.println("Buzz");
- } else if (num % 3 == 0) {
- System.out.println("Fizz");
- } else {
- System.out.println(num);
- }
- }
-}
+```{=html}
+
+
+
```
-## Julia
-
-``` julia
-function FizzBuzz(num)
- if num % 15 == 0
- println("FizzBuzz")
- elseif num % 5 == 0
- println("Buzz")
- elseif num % 3 == 0
- println("Fizz")
- else
- println(num)
- end
-end
-```
-:::
-
Create a tabset via a markdown div with the class name panel-tabset (e.g. `::: {.panel-tabset}`). Each top-level heading within the div creates a new tab. For example, here is the markdown used to implement the first two tabs displayed above:
```` markdown
@@ -242,19 +268,7 @@ fizz_buzz <- function(fbnums = 1:50) {
}
```
-## Python
-``` {.python}
-def fizz_buzz(num):
- if num % 15 == 0:
- print("FizzBuzz")
- elif num % 5 == 0:
- print("Buzz")
- elif num % 3 == 0:
- print("Fizz")
- else:
- print(num)
-```
:::
````