Try It Out:
Copy and paste any of the following programs into Discord to experience the bot for yourself!
Format your Discord message
like this!
Format your Discord message
like this for code
written in Python!
Python
print("Hello World!")
def convert_to_roman_numeral(num):
output = ""
symbols_dict = { 1:"I", 4:"IV", 5:"V", 9: "IX", 10:"X", 40:"XL", 50:"L", 90:"XC", 100:"C", 400:"CD", 500:"D", 900:"CM", 1000:"M"}
for number in reversed(symbols_dict):
while num >= number:
output += symbols_dict[number]
num -= number
return output
print (convert_to_roman_numeral(354))
def cel_to_fahr(temp):
output = (temp * (9/5))+32
return output
print(cel_to_fahr(100))
JavaScript
console.log("Hello World!")
let x = 5;
let y = 2;
let z = x + y
console.log(z)
let celToFahr = temp => {
let output = (temp * (9/5)) + 32;
return output;
}
console.log(celToFahr(100))