Max Gadget, GPG Dragon Latest Version, Install Android, Sony Xperia, Xiaomi Mi Robot Vacuum, Verizon, Android Marshmallow, Network, stock firmware

Senin, 02 Desember 2013

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

C# program to check Operators | Operators Program in C# - this blog we have built a few years ago and already very many blog visitors Max Gadget who are satisfied with the information we convey and we say thanks for that, we will then improve the quality of information we convey to you, well according to what you are looking for we will now discuss first about C# program to check Operators | Operators Program in C# this information we framework from various trusted sources, 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();
}




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

hopefully the information C# program to check Operators | Operators Program in C# that we convey can make you satisfied because it can be useful to determine the gadget according to your needs.

you just read the article titled C# program to check Operators | Operators Program in C# if you feel this information is useful and want to bookmark or share please use the link https://maxyaquos.blogspot.com/2013/12/c-program-to-check-operators-operators.html do not forget to go back to this blog to get more information about gadgets.

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

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

  • C# program to Check leap Year Using Conditional Statement C# program to Check Year is leap or not Using Conditional Statement Program Statement: Write a program using conditional operators to determine whether a year ...
  • A cool application of the delay function in c++The delay function can be used very creativelythis is one of them. In this post ill show u how to print a sentence with a delay after every letter!!there is a sligh ...
  • Professional C# 2008 Professional C# 2008 If we were to describe the C# language and its associated environment, the .NET Framework, as the most important new technology for developers ...
  • C# Program using Two argument passing functionC# Program using Two argument passing functionProgram Statement:Write a function which takes two values n1 and n2 as arguments and multiply the n1 by itself n2 times i.e ...
  • HOW TO USE THE DELAY FUNCTION IN C++Hello programmers!!Have you ever wondered how people use that effect, in C++ console applications, in which they make characters appear after a certain time. Like t ...

0 komentar:

Posting Komentar