Gadget Ferrari, Z3X BOX Samsung Tool PRO, Nexbox, Octoplus Octopus Samsung Factory Reset, Ultimate Multi Tool, Android Jelly Bean, Specifications, Images and Price, Mobile Phone Tools

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

C# program to check Operators | Operators Program in C# - we should care about the technology that continues to grow, because all the technology is usually created to simplify our lives, every time there is a new technology that is embedded into the gadgets of various brands, on blogs Gadget Ferrari we will review the latest and old gadgets that start from the spec and the price ... well now we will discuss first about C# program to check Operators | Operators Program in C# please refer to the information we will convey as we always try to display complete information.

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 many information about C# program to check Operators | Operators Program in C#

hopefully the infromation we provide with the title C# program to check Operators | Operators Program in C# can give you the reperency to find the gadget that suits your life.

you just read the article with the title C# program to check Operators | Operators Program in C# if you intend to bookmark or share it for more useful for others please use link https://ferraricars77.blogspot.com/2013/12/c-program-to-check-operators-operators.html and if you want to get more information please visit other page.

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

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

0 comments:

Posting Komentar