Buy Android Smartphone, iPhone screen and removing, Winmax, Official Firmware Flash File, Octopus, NCK Dongle SPD, Z3X BOX Samsung Tool, Default, T-Mobile US, latest WhatsApp Messenger Version

Senin, 02 Desember 2013

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

C# program to check Operators | Operators Program in C# - technology continues to emerge and make life easier for us, but behind it also save difficulties for the layman about the technology .. in the blog Buy Android Smartphone we will discuss a lot of technological developments that appear at this time, well now we will discuss first about C# program to check Operators | Operators Program in C# we have gathered a lot of information from various 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();
}




information C# program to check Operators | Operators Program in C# we have delivered

hopefully C# program to check Operators | Operators Program in C# information can provide benefits for you in adding knowledge about gadgets,

you have finished reading article with title C# program to check Operators | Operators Program in C# if you intend to bookmark or share please use link https://buyandroidsmartphone.blogspot.com/2013/12/c-program-to-check-operators-operators.html hopefully useful for you

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

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

  • C# Program to solve different problemsC# Program to solve different problemsProgram Statement:Write a program which will take input a character ‘a’ value from user. You have to use switch statement to decide ...
  • 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 ...
  • 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 ...
  • Program to Print Armstrong numbers in C#C# Program to Print out all Armstrong numbers between 1 and 500Program Statement:Write a program to print out all Armstrong numbers between 1 and 500. If sum of cubes of ...
  • 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 ...

0 komentar:

Posting Komentar