fork download
  1. using System;
  2. public class C {
  3. public static void Main() {
  4. int x = 0;
  5. try {
  6. x = 10;
  7. throw new Exception();
  8. x = 20;
  9. } catch (Exception) {
  10. x++;
  11. Console.WriteLine($"Valor de x: {x}");
  12. }
  13. }
  14. }
  15.  
  16. //https://pt.stackoverflow.com/q/159266/101
Success #stdin #stdout 0.02s 15980KB
stdin
Standard input is empty
stdout
Valor de x: 11