kisame1313

Untitled

Jul 15th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ForLesson15
  4.     {
  5.     class Program
  6.         {
  7.         static void Main ( )
  8.             {
  9.             Console . WriteLine ( Glas ("a") );
  10.             }
  11.  
  12.         static bool Glas ( string c )
  13.             {
  14.             string engGlas = "aeiouy";
  15.             bool isGlas = false;
  16.             if ( engGlas .Contains(c) )
  17.                 {
  18.                 return isGlas = true;
  19.                 }
  20.             return isGlas;
  21.             }
  22.         }
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment