Urgent!! Ask for help from the C language master! Get on your knees and beg for programming!

Updated on technology 2024-04-02
6 answers
  1. Anonymous users2024-02-07

    prob : prime

    author: cnyali

    include contains standard I/O header files;

    int main(){ The main program starts; }

    freopen(" ", " w ", stdout);

    Open the file in a writable state;

    int i, j;i,j are cyclic variables;

    int n;n is shown in the title;

    int p;p is whether a number divisible by i has been found;

    p=1: found;

    p=0: not found, then this i is prime;

    scanf("%d", &n);Enter n;

    for( i=2; i<=n;i++) from 2 to n, each number is i;

    p = 0;Initialization p is 0;

    for( j=2;jif( i % j ==0 ){ determine whether i divides j by the remainder is 0; }}

    p=1;If it is 0, find a number that is divisible;

    So let p be 1;

    break;Interrupt the enumeration and jump out of the loop;

    if(p==0) if you find no divisible number for each number of 2 i-1;

    printf("%d ",i);then print this number;

    Come to an end; If you graduated from elementary school, you will definitely be able to understand it, the stupidest way, and the one with high efficiency.

  2. Anonymous users2024-02-06

    If you pre-register until May 13, 2011, your enrollment certificate will be mailed to the above address. On May 13, your badge will not be sent later. If this information is correct in this email, print this confirmation and have it delivered to the courier check-in office on-site.

    Scan your barcode and a badge and it will be printed instantly. If an amendment is required, go to the pre-registration desk you want to go to at the on-site registration at Jacob K., located at the Crystal PalaceJavits Convention Center.

    If you mistakenly, forgot, or simply did not receive your admission before admission, please print this Confirmation of Arrival and have it delivered to the courier desk on-site. Scan your barcode and your admission will be printed instantly.

    Bring your entire buying team in! Your colleagues can register for the expo admission:

  3. Anonymous users2024-02-05

    1. Fill in the blanks.

    1. The C program development platform is composed of three parts: C environment, C standard library and C. , compile, connect.

    5. From a macro point of view, the source C file is composed of characters and numbers.

    2. Multiple choice questions.

    11. If the ASCII code of the letter A is known to be a decimal number 65 and C2 is a character type, the statement C2= is executed'a'+'6'-'3';, the value in C2 is (b).

    a) d b) 68c) indeterminate value d) c12, of the following four options, the option for which all of the user identifiers are invalid is (c).

    a)ba 、x_0、do

    b)float、1a0、_y

    c)x-y、goto、123

    d)_123、tmp、char

    13. The following characters are carriage returns, and the newline characters are (a).

    a) b v c a d f14, the correct string constant below is (c).

    a) 'a' b)'376' c)"\" d)376

    15. The expression that can represent the condition 0 x 100 is (d).

    a) 0<=x<=100 b)x>=0,x<=100c)0 x 100 d)x>=0&&x<=100 5. Read the program write result.

    1、main()

    Such statements may be different on different platforms.

    Output 5a5

  4. Anonymous users2024-02-04

    This little problem of yours still needs to be looked at by someone who is proficient!!

  5. Anonymous users2024-02-03

    The first item (2010-201 1) and the tenth item (2010-201 19) are added to give the result of zero.

    The second item is added to the ninth item, and the result is zero.

    The third item is added to the eighth item, and the result is zero.

    The fourth item is added to the seventh item, and the result is zero.

    The fifth item is added to the sixth item, and the result is zero.

    So, the five zeros are added together, and the result is zero.

  6. Anonymous users2024-02-02

    There are 10 formulas in total.

    2010*10-201*(1+3+5+..19) 1 + 19 = 3 + 17 = in parentheses....A total of 5 20

    0 didn't understand and asked. Welcome to adopt. Your adoption is my motivation. Good luck with your studies.

Related questions
9 answers2024-04-02

Hey! This is a very simple function to write, Your Excellency is estimated to have just learned data structures, now learn sorting, lookup, it's easy to give me a reward of two hundred points, I'll help you write it right away. >>>More

10 answers2024-04-02

You start by writing a function to find a sequence.

Then use for or while to call the !! >>>More

25 answers2024-04-02

First think about how many parts the whole program needs, and then what functions each part needs, and then think about the process of each part, the global variables needed, and then make it up according to the content of the design.

4 answers2024-04-02

The introductory course of MCU C language programming is not difficult, it is not easy to say, and the first thing to understand is to understand what these two things are when learning MCU C language? The introductory programming of single-chip microcomputer is mainly to learn C language, followed by circuit and programming language. >>>More