fork(1) download
  1. using static System.Console;
  2.  
  3. public class Program {
  4. public static void Main(string[] args) {
  5. var textBox1 = "123.45"; //só para facilitar o teste
  6. var textBox2 = "10"; //só para facilitar o teste
  7. var textBox3 = "abc"; //só para facilitar o teste
  8. double SalarioBase;
  9. if (!double.TryParse(textBox1, out SalarioBase)) WriteLine("Salario Base foi digitado incorrentamente");
  10. double Vantagens;
  11. if (!double.TryParse(textBox2, out Vantagens)) WriteLine("Salario Base foi digitado incorrentamente");
  12. double Descontos;
  13. if (!double.TryParse(textBox3, out Descontos)) WriteLine("Salario Base foi digitado incorrentamente");
  14. WriteLine(SalarioBase);
  15. WriteLine(Vantagens);
  16. }
  17. }
  18.  
  19. //https://pt.stackoverflow.com/q/204635/101
Success #stdin #stdout 0.02s 16096KB
stdin
Standard input is empty
stdout
Salario Base foi digitado incorrentamente
123.45
10