Full Specs Techno, Samsung Odin, Latest Version Full Setup, How to reset password and username, Oppo R7 Plus Price and Features, IMEI Tool, samsung Galaxy Charging

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

C# program to check Operators | Operators Program in C# - we are grateful this blog Full Specs Techno has been a few years can always provide useful information for you, because our goal is to advance your life with the latest technology knowledge that will make your life easier, now we will discuss first about C# program to check Operators | Operators Program in C# this information we build from various reliable sources that we collect specifically for you visitors of this blog, please see:

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

hopefully the information we provide dengn title C# program to check Operators | Operators Program in C# can provide benefits for you in determining the gadget that suits your needs.

you just read the article C# program to check Operators | Operators Program in C# if you want to bookmark or share please use link https://fullcomicfrenzy.blogspot.com/2013/12/c-program-to-check-operators-operators.html there is still a lot of information on this blog if you want to read it please visit other page, 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:

Post a Comment