Tech News, Huawei stock ROMs / firmware, Infinity Box Chinese Miracle 2 MTK v 1.58 setup, D&G Unlocker Tools "Bypass FRP Lock" Full Setup Installer Free, Dream league soccer apk+data download, Ultimate Multi Tool GSM v Setup, Huawei FRP Lock Bypass Tool Software Latest Version Free, True Smart Max 4.0 Plus unlock sim all, Itel 5020 Stock Firmware, GTA Vice City Ultra Compressed from 1.38 GB to 257 mb for Android, How To Unbrick Qualcomm Android Devices

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

C# program to check Operators | Operators Program in C# - How are you, friend? welcome to our blog super full Tech News, well now we will discuss the information you find on the search engines like google and other information that will we say this time is C# program to check Operators | Operators Program in C#, we always strive to show you the complete information for you, all right 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 about the C# program to check Operators | Operators Program in C# we have conveyed

A few of our information about the C# program to check Operators | Operators Program in C#, I hope you can exploit carefully

You have finished reading C# program to check Operators | Operators Program in C# and many articles about Tech News in our blog this, please read it. and url link of this article is https://hibbydabby.blogspot.com/2013/12/c-program-to-check-operators-operators.html Hopefully discussion articles on provide more knowledge about the world of new tech gadgets and tech news.

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

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

0 komentar:

Post a Comment