Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication23
- {
- class Program
- {
- static bool iden (char a)
- {
- char n;
- bool v = false;
- n = 'A';
- while (n <= 'z')
- {
- if (n == a)
- {
- v = true;
- n = '{';
- }
- n++;
- }
- return v;
- }
- static void Main(string[] args)
- {
- char a;
- bool tf;
- Console.WriteLine("Enter a character: ");
- a = char.Parse(Console.ReadLine());
- tf = iden(a);
- Console.WriteLine(tf);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement