2 like 0 dislike
9.2k views
Show more...
[Exercise] Coding (C) - asked in Chapter 5: Selection Statements by (12.1k points)
ID: 27667 - Available when: Unlimited - Due to: Unlimited

edited by | 9.2k views

77 Answers

0 like 0 dislike
Hidden content!
#include <stdio.h>

int main()
{
    
    
* ** * * * * * * * ** isbn;
** *** *** * * ***** tot=0;
    
* * ******* ***** **** ** * ** * * * ** &isbn);
* * * ** * **** *** ** **** * ******** * *** * **
    
** ** * ***** * ** * ** * ** **
*** * ** ** * ********* ** * *** *** **** ** * *
* * * * * ** * *** * ****** *** ** * ***
**** * * * * * * **** * ** *** ** **** * ** *
* * ** *** *** * ** * * * * *****
* * ** * * ** *** * * * * *** **
* * ****** * * **** ***
* ** *** ** * **** * ** * **
** ** * * * * ** ***** ** * * * ***
* *** ** ** *** ** *** ** ****
** ** **** * * ** * ** **
* ** ** ** * ** * * ***** * *
** ****** * * ** * * *
* * *** ** *** * *
* **** * ****** ** * ****
** ** * * ** ** ** * * = **** *** **** ** *** ** ** * * * * *** *
    
* ** * * ** * * * * * ** (10-(tot%10)==d13)
** *** * * * ***** ** ** * *
**** * * * * *** * * * ** ***** * * * * ISBN");
* * ***** * *** * ** * *
    
***** *** * *** ** ** * ** * **
*** * *** * ** **
** * * ** ******* * **** ** ** ** * ** ** * ** * *** **** * ***** ISBN");
* ** * ** * * * * **
    
* * *** *** ** *** * 0;
}
answered by (323 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main()
{
* * ** * * ** * * **** ** isbn;
* * ** * * * * * *** sum1;
***** * * **** * * ** ** sum2;
* * * *** ****** * ** ** sum3;
******* * ** *** * * sum4;
** * * * ** * * * ** sum5;
* *** *** * ** **** *** sum6;
** *** * * *** *** sum7;
* **** * ** * * sum8;
* ***** ***** *** **** * sum9;
* * * ** * ** *** ** * sum10;
*** * ** * ** * **** sum11;
* * ** * * * ** **** sum12;
** ***** **** *** * ***** sum13;
*** ** *** *** ***** ** * tt;
* **** * *** * ** * * tt1;
    
** ** * ** *** ** *** ** * ****** * * ** ** **
    
* ** *** * * ** *** *** * * * *** *** * * *
** * *** ** ** ** * * * *** * *** * *** * **
* *** * ****** ****** * * * ** ** *** * * * *
****** * * ******* * ** * ** ******* *** *
*** * * * * ** * ***** ** **** * ** * **
* ************ *** * ** ** * *** * *** ** * * * ** * *
** *** * * * * ** ** ** * **** * * * * **
** *** * **** *** ** **** * ****** ** ** *
*** **** ***** * **** * ** * * *** *** *
** * ******* ** * ** * * ****** * * ** *
***** * *** *** **** ******* *** * **
* *** ** * **** * * ** * ** * ****
*** * * ** * *** **** **** * **** *** *** *
    
** ** * * *** * *** ** ** *** ** **** * * * * ****** * *
***** * *** * * **** * * * **** * *
    
* ** * * ** * * * ** * * == sum13)
    {
***** * *** * *** * *** ** * * * **** * * * ISBN");
    }
** * ** * ********** **
    {
**** ** * * * *** ** **** *** *** ***** * ******** *** * ISBN");
    }

*** *** * * * ** **** 0;
}
answered by (-193 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
#include ** * * *** *
int main (void)
{
int ***** ** *** ***
* *** * ** %1d %1d %1d %1d %1d %1d %1d %1d %1d %1d %1d ** **** * * * **** ** *** ** ** * *** ** * ** * ****** *** * ** * ** * * * **

* ** * * * ** * ** *** * * *
 
** *** ** (check==10) ***** * * ** * * **
check = 0;
**
* ** * ** ** *** * * ** * *
** *
* ** ***
/*if ** ** * **** ** * ***
check = 0;*/

if (check==0) ** * * * ********
* * ********
*** *** ********* * ** * *** * * * **** **
* * ** *** *
else * *** * * ** * * * *** *
* * ** *** *
* *** * ** *** ** ** **** * * * * ** ** * ***
** **
**** * 0;
}
answered by (-249 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
#include *** ** **
int main (void)
{
int * * * ** ** ***
* ****** * %1d %1d %1d %1d %1d %1d %1d %1d %1d %1d %1d * **** * * * ***** **** * * *** ** * * * * ** * ** * **** * ********* **

* * * ** * * **** *****
 
***** (check==10) * * * * ** * * * ** *****
check = 0;
* * * *
** * * * * *** * ****
** * *
** **** *** *
/*if *** * ** ** * * ***** *
check = 0;*/

if (check==h) * * * * *
* ** * *
*** **** ** ** * * * **** * ** * ** *
* ** **** * * *
else * * *** * ** ** *
* * ** * **
** * ** ***** * * ******** * ** * * * * * **** *** *
** ***** * *
*** * ** * 0;
}
answered by (-249 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Correct output
Case 3: Wrong output
0 like 0 dislike
Hidden content!
** ** * * * ** *****
int main (void)
{
int ** *** *** * * **** ** * ** * ** ** * * ** ** *** ** * * * * * *** ** ** * ******* ** * * * ** * * * ** * * * **** * ** * **** **** * *

*** * * * + (d2*3) + (d3*1) + (d4*3) + ** + (d6*3) + (d7*1) + (d8*3) + (d9*1) + ** + *** + *

* ** **

****** *    
** * * *
    * * * * ****
** * **
* * ** *
* * **** ***
** *** ***** * * * * * ***
* * ** * * **
** ** *** 0;
}
answered by (-249 points)
0 0
Show more...
0 like 0 dislike
Hidden content!
** *** *** ** * * *
int main (void)
{
int *** * ** **** * * * * *** ** * *** ** * ** *** * * * **** * ** * ** ** ** ** * * * *** ** **** * * **** * ** * ** ** ** * ***** ** * * *** *

* ** * + (d2*3) + * * + * + (d5*1) + (d6*3) + (d7*1) + (d8*3) + (d9*1) + + * + ** ****

** * ***

if * ** *
* * * * ** * *** ** * **

** ****** * * * ** * * * * *** * *
** * * * 0;
}
answered by (-249 points)
0 0
Show more...
0 like 0 dislike
Hidden content!
* *** * ** **
int main (void)
{
int * *** * ***** ** *** * ** ** * ***
** * * * * * * ** * ** * ** * ** ******** **** * * *** *** **** * * ** * ** * ** * *** ** * * * * ** ** * **

** * ** + (d2*3) + ** + ** + (d5*1) + (d6*3) + (d7*1) + (d8*3) + (d9*1) + **** + *** + * ****

** *** *

** * * *** ** * **
* ** * * ** *

** * *** * *
* ** ** * *** ** ** * * *
* * 0;
}
answered by (-249 points)
0 0
Show more...
0 like 0 dislike
Hidden content!
*** **** * ** * ** * **
int main (void)
{
int ** ** ******** * * * * * ***** ** ** ** *** * * * * ** * ** ***** * **** **** ** * * * ** ** * * * *** *** ** * ** * * * * * * ** * *** ** **

* * ** *** + (d2*3) + (d3*1) + (d4*3) + (d5*1) + ** + + (d8*3) + ** + * + * + * * *

* * * * *

if *** == d13) **
*** * * ** * * **** *

* * * * *** * * ** ** * * * 0;
answered by (-249 points)
0 0
Show more...
0 like 0 dislike
Hidden content!
* ** *** *** * * *
int main (void)
{
int *** * * *** * ** ** * * ** * ** * * * *** * * * *** ** ** * ******* ** **** ** * *** * ** *** * * * * *** * *** ** **** ** * ***

****** * * + (d2*3) + (d3*1) + (d4*3) + (d5*1) + * + *** + (d8*3) + ** * + ** + ** + * *

* ** **

if **** == d13) * *
** ** * * * * *

**** * *** * *** * *** *** ** * * ** * ** * 0;
answered by (-249 points)
0 0
Show more...
0 like 0 dislike
Hidden content!
**** * *
int main *
{
int ** * * * ***** ****** * *** * ** * *** ** *** ** ******* *** * *** ********* *** * * * * *** * * ***** ***** ** ** * * *** * * * ** * ******** *****

** * *** + * * + * + (d4*3) + (d5*1) + (d6*3) + ** + * * * + * + * + **** + ***

* * *

if * == 10) ** ** = 0;

if * * == d13) *
** * * * * ** * * **

** ** * *** ** ** * * *** return 0;
answered by (-249 points)
0 0
Show more...
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.71.255.47
©2016-2025

Related questions

0 like 0 dislike
26 answers
[Exam] asked Dec 9, 2017 in Midterm by thopd (12.1k points)
ID: 36751 - Available when: 2017-11-15 14:10 - Due to: Unlimited
| 3.5k views
1 like 1 dislike
49 answers
[Exam] asked Nov 15, 2017 in Midterm by thopd (12.1k points)
ID: 32706 - Available when: 2017-11-15 14:10 - Due to: Unlimited
| 5.6k views
12,783 questions
183,442 answers
172,219 comments
4,824 users