This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => { | |
// Prompt the user for the number of dice | |
let diceRoll = new Dialog({ | |
title: "Dice Roll", | |
content: `<p>Enter the number of dice:</p><input type="number" id="numDice" value="1" min="1">`, | |
buttons: { | |
roll: { | |
label: "Roll", | |
callback: async (html) => { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
&{template:simple} {{rname=Normal}} {{mod=?{Bonus|0}}} {{r1=[[1d20+?{Bonus}]]}} {{normal=1}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace HodStudio.Exemplos | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Informe a nota da prova 1:"); | |
var prova1 = decimal.Parse(Console.ReadLine()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ImpostosNotaFiscal | |
{ | |
public decimal CalcularValorLiquido(decimal valorNotaFiscal) | |
{ | |
var impostoPis = CalcularPis(valorNotaFiscal); | |
var impostoCofins = CalcularCofins(valorNotaFiscal); | |
var impostoIrpj = CalcularIrpj(valorNotaFiscal); | |
var impostoCsll = CalcularCsll(valorNotaFiscal); | |
var impostos = impostoPis + impostoCofins + impostoIrpj + impostoCsll; | |
return valorNotaFiscal - impostos; |