-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVowelDemo.cs
40 lines (39 loc) · 1.02 KB
/
VowelDemo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Text;
namespace SkillMineProject.ConditionalDemo
{
class VowelDemo
{
static void Main(String[] args)
{
char ch;
Console.WriteLine("Enter the char");
ch = Convert.ToChar(Console.ReadLine());
if (ch == 'A' || ch == 'a')
{
Console.WriteLine("Vowel");
}
else if (ch == 'E' || ch == 'e')
{
Console.WriteLine("Vowel");
}
else if (ch == 'I' || ch == 'i')
{
Console.WriteLine("Vowel");
}
else if (ch == 'O' || ch == 'o')
{
Console.WriteLine("Vowel");
}
else if (ch == 'U' || ch == 'u')
{
Console.WriteLine("Vowel");
}
else
{
Console.WriteLine("Consonent");
}
}
}
}