Advertisement
joaopaulofcc

Untitled

Dec 1st, 2021
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1.     namespace ProjetoTeste
  2. {
  3.     public static class Helper
  4.     {
  5.         public static bool VerificaIdadeDeRisco(int idade)
  6.         {
  7.             if (idade >= 18)
  8.             {
  9.                 return false;
  10.             }
  11.             else
  12.             {
  13.                 return true;
  14.             }
  15.         }
  16.  
  17.         public static bool VerificaNomeDeRisco(string nome)
  18.         {
  19.             if (nome == "corona")
  20.             {
  21.                 return true;
  22.             }
  23.             else
  24.             {
  25.                 return false;
  26.             }
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement