using System;
public class Program
{
static decimal total =0;
static decimal valor1 =10;
static decimal valor2 =15;
static decimal valor3 =21;
public static void Main()
if(valor1 % 5 == 0)
total = total + valor1;
}
total = total + valor2;
total = total + valor3;
Console.WriteLine("RESULTADO TOTAL= " + total.ToString());
static void Adicionar(int valor)
total = total + valor;