View the flowchart and write the code

Source: Internet
Author: User

This is my own question. It looks very simple and most people will not. I have tested many people, including programmers with many years of experience, some new users, and candidates. within 10 minutes, no more than 20% people can give the correct answer. The questions are as follows:

Read the flowchart and write the code.

Let's look at the example first. T indicates True, and F indicates False.
Example 1:


The flowchart code is written as follows:

Do {
A;
} While (C );

Example 2:

The code for example 2 can be written as follows:

While (C)
{
A;
}

Write the code according to the following flowchart. You cannot use goto or if.

Complete this question within 10 minutes.

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.