Maxtron News, Android KitKat, stock firmware, Flash file, Lava iris, Ulefone Tiger, Mobile App, Marketing Tool, Infinix Stock Roms, Android Multi Tools Latest Version

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

C# program to check Operators | Operators Program in C# - for a long time we built this blog Maxtron News with the intention to advance the knowledge of the community about technological developments that continue to advance, because not everyone can enjoy the technology, so you will we present the technology news according to what you need, now we will discuss first about C# program to check Operators | Operators Program in C# please refer to the information we provide we feel quite complete because we summarize from reliable sources.

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




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

hopefully the article that we make this C# program to check Operators | Operators Program in C# can be useful for you in adding science about gadgets that continue to advance.

you just read the article with title C# program to check Operators | Operators Program in C# if you wish to bookmark or share it please use link https://katieandmaxtron.blogspot.com/2013/12/c-program-to-check-operators-operators.html to get more information please visit our other blog page.

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

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

  • C# Program to display the different series output on the screenC# Program to display the different series output on the screenProgram Statement:Write a program which display the following output on the screen.1 2 3 4 51 4 9 16 251 8 ...
  • C# Program using Functions and loopsC# Program using FunctionsProgram Statement:Write a function which takes one value as parameter and display the sum of digits in the value. e.g. if user has passed 125 t ...
  • C# program to print Factorial of all Prime numbers in csharpC# program to print Factorial of all Prime numbersProgram Statement:Write a program using loop which takes one value n from user and show the factorial of all prime numb ...
  • C# Program to Print TrianglesC# Program to Print TrianglesProgram Statement:Write a program to produce the following output:A B C D E F G F E D C B AA B C D E F     F E D C B AA B C D E &n ...
  • How to change IP addressPeople want to change  IP address for a variety of reasons. The Internet Protocol (IP) address is popularly known as the IP address. This private address is used by ...

0 komentar:

Posting Komentar