Extra Pandoc Arguments
--template eisvogel --listings
Comments
<---
I am a comment
-->
https://stackoverflow.com/a/4829998
Numbered List
- One
- Two
- Three
- Four
- Five
Bullet List
- One
- Three
- Four
- Five
- One
- Two
- Three
- Four
- Five
Tables
| 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 |
| 1 | 2 | 3 | 4 | 5 |
| 1 | 2 | 3 | 4 | 5 |
| 1 | 2 | 3 | 4 | 5 |
Codeblock
# Program to check if a number is prime or not
num = 29
# To take input from the user
#num = int(input("Enter a number: "))
# define a flag variable
flag = False
if num == 1:
print(num, "is not a prime number")
elif num > 1:
# check for factors
for i in range(2, num):
if (num % i) == 0:
# if factor is found, set flag to True
flag = True
# break out of loop
break
# check if flag is True
if flag:
print(num, "is not a prime number")
else:
print(num, "is a prime number")