King Gadget, Nokia, Sony Xperia Z, Speaker Audio Sound, Latest Update Flash File, USB Not charging problem

Senin, 02 Desember 2013

C# program to check Operators | Operators Program in C#

C# program to check Operators | Operators Program in C# - welcome friends, how are you today? ... hopefully healthy ... starting today blog King Gadget will discuss trus information about the latest gadgets and old ones, ok now we will discuss first C# program to check Operators | Operators Program in C# this information we collect from various reliable sources so that you will get complete and correct information, please read.

Articles : C# program to check Operators | Operators Program in C#
full Link : C# program to check Operators | Operators Program in C#
Article Csharp, Article programming, Article programs,

You can also see our article on:


C# program to check Operators | Operators Program in C#

C# program to check entered value is arithmetic operator, logical operator, conditional operator, relational operator or something else

Program Statement:
Write a program using switch statement which takes one character value from user and check whether the entered value is arithmetic operator, logical operator, conditional operator, relational operator or something else.

Solution:

static void Main(string[] args)
{
char ch;
int a;
Console.WriteLine("Enter any Character:");
ch = Convert.ToChar(Console.ReadLine());
a=(int)ch;
switch (ch)
{
case '+':
case '-':
case '*':
case '/':
case '%':
Console.WriteLine("Entered Character is Arithmetic");
break;
case '&':
case '|':
case '!':
Console.WriteLine("Entered Character is Logical Operator");
break;
case '?':
case ':':
Console.WriteLine("Entered Character is Condational Operator");
break;
case '<':
case '>':
case '=':
Console.WriteLine("Entered Character is Relational Operator");
break;
default:
Console.WriteLine("Entered Character is something else not included i n list");
break;

}
Console.ReadLine();
}




so much information C# program to check Operators | Operators Program in C#

hopefully the information C# program to check Operators | Operators Program in C# that we convey could be useful for you in searching the latest gadget information on google

you just read the article with title C# program to check Operators | Operators Program in C# you can bookmark for easy return visit or you can also share so this article can be more useful for many people by using link https://shwesetharrking.blogspot.com/2013/12/c-program-to-check-operators-operators.html umpteen and thank you.

Tag : , , ,
Share on Facebook
Share on Twitter
Share on Google+

Related : C# program to check Operators | Operators Program in C#

0 komentar:

Posting Komentar