C # Section 12th branch Statements If, switch, three-bit operators

Source: Internet
Author: User

The content of this section:

1: Process Control statement classification

2: Use of the If of the branch statement

3: Use of switch for branch statements

4: Three-bit operator for branch statements

5: Branch Statement comparison

1: Stream Program Control 5: System statement classification

2: If of the branch statement

3: Switch of branch statement

4: Three-bit operator for branch statements

Instance

<  hint is less than  ten>=  The hint is greater than or equal  to the condition that the judge has two results
Console.Write ("Plz input something number:"); int a = Int. Parse (Console.ReadLine ()); Console.WriteLine (a<10? ") The value entered is less than 10 ":" The input value is greater than 10 "); Console.readkey ();
5: Comparison of three branch statements

  

C # Section 12th branch Statements If, switch, three-bit operators

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.