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");

    }

   else{
* ** **** **** ** ** * ** * **** ***** * * ISBN");

   }
* * * **** * ** ***** **** *** ** ** 0;



}
answered by (-140 points)
0 0
Case 0: Wrong output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
1 like 0 dislike
Hidden content!
* ** ** * ***** *** *


** ** *

{
* * * * * ** * * ** *** * * *


** * * * * * = 0 ;


** * * * * * * * ** ** %1d %1d %1d %1d %1d * * * ** * * * * **** *** *** * * *** * ** * ** ** ** * ** * * * **** ** *


*** * * * * = a*1 + * + c*1 + d*3 + e*1 + f*3 + + * * + * + * + ** + *


* ** * **** * ** = 10 - **** ** %


***** * ** * * == m )
* * *** ** * * ** ****** ** ***** **
* ** **** ***
** *** * ** * * **** * **** **** * ** ** ** ***



}
answered by (-285 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!
** * * *** * * *


* * ***

{
** ** * * * int * *** **** ** * *


* ** * * ** int = 0 ;


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


** * * * = a*1 + b*3 + c*1 + d*3 + e*1 + * + g*1 + h*3 + i*1 + j*3 + k*1 + *


* ** * * ** = 10 - ** * %


* * * ** if( ** == m )
* * * * * ** * ***** * ** * **** * *** **** * *
* ** * ** *
* * ** *** ** ***** * ** *** ******* *** *



}
answered by (-285 points)
0 0
prog.c: In function 'main':
prog.c:9:50: error: format '%d' expects a matching 'int *' argument [-Werror=format=]
  scanf("%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l,&m);
                                                  ^
cc1: all warnings being treated as errors
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include <stdlib.h>



int main()

{
** ** ** * ** * * * ** a,b,c,d,e,f,g,h,i,j,k,l,m,n,p;
** **** ** * * ** *** *** ** *** * * ** ** ** * * ** * * **** * *** * ** * **** * ** **** **** * * * **** * **** ** * * ***** * * * **
** *** * * * ** * * ** * **** ** *
***** ***** ** *** * *** ** ** *
* ***** * ** **** * ****
* ** * * ** * * *
* **** * * ** * *** * *** * ** *** *** * * * ** *** *** * ISBN");

    }
* * * * * ** * ****** ****
**** * * * *** **
* * ** * * * ** ** *** *** * *** * * * * ISBN");
* * * * * *** * * *
* * * * ** * * * ** * 0;

}
answered by (-498 points)
0 0
prog.c: In function 'main':
prog.c:10:5: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
     if(p=m)
     ^~
cc1: all warnings being treated as errors
0 like 0 dislike
Hidden content!
* * ** * ** *** **


*

{
* ** * *** **** int * ** * ******


* * * ** * int ** = 0 ;


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


** * * ** = a*1 + b*3 + c*1 + d*3 + e*1 + ** + g*1 + h*3 + i*1 + j*3 + k*1 + **


** * ****** = 10 - ** % *


*** * * *** if( * * == m )
* * *** * **** * **** * ** * * * * **** * *
** * ** ****
** ** * * *** * * ****** ****** *** *** **



}
answered by (-285 points)
0 0
prog.c: In function 'main':
prog.c:9:50: error: format '%d' expects a matching 'int *' argument [-Werror=format=]
  scanf("%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l,&m);
                                                  ^
cc1: all warnings being treated as errors
0 like 0 dislike
Hidden content!
*** * * * ****


*** * ***

{
** ** *** *** int * * ** * * *


***** ** *** int * * = 0 ;


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


* * * * * * = a*1 + b*3 + c*1 + d*3 + e*1 + * + g*1 + h*3 + i*1 + j*3 + k*1 + *


* * * * * = 10 - * ** %


* * ***** if( *** * == m )
***** ***** ** ** * ** **** ** *** * *** * *
* ** * * *** ** *
*** * ** **** * ** ** * *** * **** **** * **



}
answered by (-285 points)
0 0
prog.c: In function 'main':
prog.c:9:50: error: format '%d' expects a matching 'int *' argument [-Werror=format=]
  scanf("%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l,&m);
                                                  ^
cc1: all warnings being treated as errors
1 like 0 dislike
Hidden content!
#include <stdio.h>

int main()

{
* *** ** ** * * * ********* * **** *** * **
********** ** ** * * * * ** * *** ***** * *** * * ** * ** **** * ** * * ******* ** ***** * * * **** * * *** ** ***** * ** ** * ** * *
***** * ** * **** ** * * * ** *** * ******* **** ****** * ** * * *****


** **** * * * * *
** * * ****** **** ** *** *** * * * * *** ** **** ** ** * ISBN");
* ** * ** ** * *

   else{
* * ** ** ** ** **** *** * ****** * * * ** * **** * ISBN");

   }
** ** *** ***** * * * * ***** * * *** 0;



}
answered by (-254 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");
* **** * ** **** *** *

   else{
* ** * * *** ** * * * ****** ISBN");

   }
*** * **** * * * *** ***** *********** 0;



}
answered by (-254 points)
0 0
Case 0: Wrong 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");
* ** ** **** ** *** ** *

   else{
** **** * * * *** * * * *** **** **** * * * * * * * ISBN");

   }
*** * * * ******* ****** **** *** * * * ** * * * 0;



}
answered by (-254 points)
0 0
Case 0: Wrong 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");
* ** ** * ******

   else{
** *** ***** * * * * ** ** * ** ** * ISBN");

   }
** * * ** ** **** * * **** ***** 0;



}
answered by (-254 points)
0 0
Case 0: Wrong output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.6.190
©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