Samsung Galaxy Note, 4G LTE Plans, Transfer Photos Videos from iPhone to Samsung, Network Performance, Mobile Accounts, Furious Gold SPD TooL, Latest Version Full Setup

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

Info C# program to check Operators | Operators Program in C# - this blog we have built from a few years ago and already very much information about gadgets that we convey and a lot of blog visitors New Blog Techno News who are satisfied with the information, we will always try to update the latest information for you, first about Info C# program to check Operators | Operators Program in C# many already we collect data to make this article so you do not miss the news, please see:

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

You can also see our article on:


Info 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();
}




articles Info C# program to check Operators | Operators Program in C# finished in discussion

hopefully the information we convey about Info C# program to check Operators | Operators Program in C# can benefit you in getting new knowledge about technology,

you just finished reading the information Info C# program to check Operators | Operators Program in C# we hope this informmation can answer the question you submit to googlle, if you want to bookmark or share please use link https://moymoycikukecik.blogspot.com/2013/12/info-c-program-to-check-operators.html and do not forget to always visit this blog to get the latest information every day.

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

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

0 komentar:

Posting Komentar