[Plain]
/* Start the comments in the program header (to avoid any problems encountered during the submission of blog posts, the slash used to indicate that the comments have been deleted)
* Copyright and version Declaration of the program
* All rights reserved.
* File name: txt. c
* Author: liuyongshui
* Question: select a candidate. He teaches Class 1 and Class 2 C ++ programming courses, the student ID of the first class is 42-84,
Now, five students are required to participate in the evaluation of the teaching effect organized by the school by drawing lots in each class. Please program and complete the "Drawing lots.
* Problem source:
* Completion date: January 1, April 17, 2013
* Version No.: V1.0
*/
# Include <stdio. h>
# Include <stdlib. h>
Int main ()
{
Int I;
For (I = 1; I <= 10; I ++)
{
Printf ("personal ID % 2d: % d \ n", I, rand () % 84 );
}
Return 0;
}
/* Start the comments in the program header (to avoid any problems encountered during the submission of blog posts, the slash used to indicate that the comments have been deleted)
* Copyright and version Declaration of the program
* All rights reserved.
* File name: txt. c
* Author: liuyongshui
* Question: select a candidate. He teaches Class 1 and Class 2 C ++ programming courses, the student ID of the first class is 42-84,
Now, five students are required to participate in the evaluation of the teaching effect organized by the school by drawing lots in each class. Please program and complete the "Drawing lots.
* Problem source:
* Completion date: January 1, April 17, 2013
* Version No.: V1.0
*/
# Include <stdio. h>
# Include <stdlib. h>
Int main ()
{
Int I;
For (I = 1; I <= 10; I ++)
{
Printf ("personal ID % 2d: % d \ n", I, rand () % 84 );
}
Return 0;
}
A lottery