Diandra Gadget, league soccer apk data, Samsung to iPhone, HUA Box Version, LAVA IRIS, Firmware Flash file and flash tool, Android KitKat, Lenovo, review Computer and Digital

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

C# program to check Operators | Operators Program in C# - lately we often hear a lot of new gadgets are released by famous brands that have a good spec, on the blog Diandra Gadget we will discuss about the review gagdet of all brands ranging from spek, price and how to use it, now we will discuss first about C# program to check Operators | Operators Program in C# please refer to the information we provide, because we have collected a lot of data to make this article to be complete 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();
}




quite so many infromation C# program to check Operators | Operators Program in C#

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

you just read the article with the title C# program to check Operators | Operators Program in C# if intend to bookmark bookmark or share please use link https://diandrakesling.blogspot.com/2013/12/c-program-to-check-operators-operators.html to get more information about technology please visit other pages on this blog, thank you.

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

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

  • How to add jQuery pagination to any table in minute?Pagination is one of most common things we face everywhere, wherever there is no infinite scrolling. Pagination can be achieved server side with php as well, but those i ...
  • C# Program to Print ASCII Values Using do-while LoopC# Program to Print ASCII Values Using do-while LoopProgram Statement:Write a program to print all the ASCII values and their equivalent characters using a do-while loop ...
  • 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 ...
  • C# Program to check number is prime or composite C# Program to check entered number is prime or composite Program Statement:Write a program that takes an integer as an input from user and prints if it is a prime o ...
  • C# Program to print Rectangle $C# Program to print Rectangle $Program Statement:Write a program using for loop which prints the following output on the screen.$$$$$$$$$$$$         ...

0 komentar:

Posting Komentar