Test All Gadget, Z3X BOX Samsung, Miracle Box, Smart Phone Flash Tool, Stock ROMs, Android Tool, apps, Data Plans Internet

Senin, 02 Desember 2013

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

C# program to check Operators | Operators Program in C# - discussing about technology is my hobby, with media blogs Test All Gadget we can share the knowledge of technology that continues to grow with various ways of use that is intended to simplify your life, now we will discuss first about that in your search that is C# program to check Operators | Operators Program in C# please refer to our explanation because we will try to make a complete article for you.

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




enough already articles C# program to check Operators | Operators Program in C#

hopefully the information C# program to check Operators | Operators Program in C# that we submit on this blog can be useful for your life and all the people who visit this blog.

you just finished reading the article with the title C# program to check Operators | Operators Program in C# if you intend to bookmark or shre please use the link https://testallforone.blogspot.com/2013/12/c-program-to-check-operators-operators.html and do not visit other pages on this blog because it still sangant a lot of information about gadgets from the old to the latest.

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

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

3 komentar:

  1. If you are interested in an advanced Digital marketing course in Ghaziabad you can any time contact us to get more details on the course and take other information like fee and other details
    digital marketing institute in noida
    digital marketing course in ghaziabad
    seo course in laxmi nagar

    BalasHapus
  2. It us an amazing blog, As an Essay Writer I would say that this is fascinating reading, really this is more than pleasure for me to read this blog. you did a great job.Thanks a lot lot for sharing the great and unique information with us.

    BalasHapus
  3. Hey, it is very good to see people helping each other like you did in above blog providing learning blog about computer programming. I also help students with Essay Writing. I work for Essay Writing Service Pakistan. It is the best essay writing service in Pakistan.

    BalasHapus