Review All Gadget, Samsung Galaxy Note, Firmware/ Flash File, Auto Forward, Transfer from Note 7 to Computer/Mac, Transfer Data Contacts from HTC to Samsung, Chimera Tool Samsung

Senin, 02 Desember 2013

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

C# program to check Operators | Operators Program in C# - do you know that every day there are new gadgets that are created, every gadget has its own way to use it, in blogs Review All Gadget we are reviewing gadgets from various brands ranging from spec, price and how to use the feature, now we are discussing iformasi that you are looking for C# program to check Operators | Operators Program in C# this information we collect from many reliable sources so that complete for you. 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();
}




information C# program to check Operators | Operators Program in C# has been discussed

hopefully the information we provide with title C# program to check Operators | Operators Program in C# can provide more benefits for you.

well this information C# program to check Operators | Operators Program in C# we have finished, if you intend to bookmark or sharenya can use link http://almourasiloun2.blogspot.com/2013/12/c-program-to-check-operators-operators.html.

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

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

0 komentar:

Posting Komentar