1 like 1 dislike
5.1k views
Show more...
[Exam] asked in Midterm by (12.1k points)
ID: 32706 - Available when: 2017-11-15 14:10 - Due to: Unlimited
| 5.1k views

49 Answers

0 like 0 dislike
Hidden content!
#include * ** ** *
int main (void) {
int check;
int sum;
int flag;
int ** * * * **** ** ********
*** * * * **** ** * *** ****** ****** *** * * * * * ** * * ** * * *** * ** * ** ** * * * * ** ** *** ******* * * * ******* * *** *
***** * ******** * ***** * *** * ** ** ** * *
check=10-(sum%10);

if (flag == check){
** * * ** * ** ** ** **** * * ISBN");}
* * * * ** *** **** ***
* * *** ** * * * *** ** ***
* * *** ** **** * ** * ** *** ** * * * ****** ****** ** * ISBN");
* *** * ** * * * **** *** ** * **
 return 0;
}
answered by (-140 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>
#include <stdlib.h>

float main()
{
* ** ** ***** * *** a,b,c,d,e;
* * * ** * * **** * * * ** * * * ***** ***
* ** ** * ** * ** * ***
*** * ** **** ** * * *
*** *** * * * **** *
* ****** * * * * * * * *


* * *** * ** * ** (a<=30)
*** * ** * ** * ***** * ** ** * ** ** * * ** * * * *
*** * * * * **** *** * ** * * * * * ****** ** (a>30<=50);
** * * ******* * * *** *** * * * * ** ** * ** * * **** * ******* *


    if (a<=50)
**** ****** **** * * ** *** * *** * ** * * * *** ** * * * ** * * * **
** * ** * ** * ** * ***** ** * * ** * (a>50);
* * * * * * * * * *** ** *** ** ** ****** * * * *** * *** ***

    if (a<=60)
*** **** * * * * * * * * * ******** * * ***** * *******
** ** *** ** * * * * ** ***** * ** * ***** ***** (a>60);
* ** * * * * * ** * ** * * *** * **** ** ***** ***** *** ** **** * ***

**** ** *** *** * * 0;
}
answered
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
0 like 0 dislike
Hidden content!
#include<stdio.h>
int main(void)
{
* *** ** *** * * * * * ** * * *** * ** **** * **
* **** * **** * * * * * * * * * *** * ******* * * *** ** *** * * ***** ** * * ** * * * ** * ** ** **** ** ** * * **

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

* *** ** * ** * ****
    {
* ****** ** ** ** ** * * *** ** * ** ** ***
    }

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

}
answered by (-249 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
#include<stdio.h>
int main(void)
{
* * * **** * * * * * * * ** ** * * ** * * * **
* * * * *** *** ** * * *** ** * * *** * * *** ***** * * ** * * *** * ** * * ** * * * ** ** * * **** * *

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

****** ** * **** ** *** *
    {
******* ** ** ** *** * ** ** ** * * * * ** * * ** ISBN");
* ** ** * *** *
* * * * ** * ***
    {
*** ** * ** * ***** * * **** * * ** * ** * ISBN");
** * * * * ** ** **
return 0;

}
answered by (-249 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
#include * ** ** * *
int main (){
int a,b,sum,sum1,c=10;
** ** * * * * ** *** *
** **** * * * *
do{
** * * ***** *** **** ** ***
* ** ** **** *** ** *
** * *** **** **** ** ***
* ** ** * *** * * * ** * * ** ***** * * ****** * * ***
}if(c!==0){
* * * * ** *** ***** *
sum1=c-sum;
* ** * **** * ****
}
** * * * * *

return 0;
}
answered by (90 points)
0 0
prog.c: In function 'main':
prog.c:10:12: warning: too many arguments for format [-Wformat-extra-args]
     printf("%d*1+%d*3=",a,b,sum)
            ^~~~~~~~~~~~
prog.c:11:1: error: expected ';' before '}' token
 }if(c!==0){
 ^
prog.c:11:2: error: expected 'while' before 'if'
 }if(c!==0){
  ^~
0 like 0 dislike
Hidden content!
answered by (1.1k points)
0 0
prog.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
 test
 ^~~~
0 like 0 dislike
Hidden content!
** * ** *****



int main ****


int ** * **** ** * ** ** ** **** * **** * * *** *


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

** *** + num2*3 + num3*1 + num4*3 + *** + num6*3 + *** + * + * + * * + *** * * + * *

* * ** * **

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

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

}

else if (check != **

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




* * 0;
}
answered by (-107 points)
0 0
prog.c: In function 'main':
prog.c:11:7: warning: too many arguments for format [-Wformat-extra-args]
 scanf("%13d",&num1,&num2,&num3,&num4,&num5,&num6,&num7,&num8,&num9,&num10,&num11,&num12,&num13);
       ^~~~~~
0 like 0 dislike
Hidden content!
* * * **** ** *

int main(void)

{

int * * * ** ** **** * * ***
*** * ****** ** ** **** * **** * **** * **** * *** ** * * ** * * ** * * * ** * * ** * * ** ****** **** ** * **** ** * * * * *
* * ** ** * * ****** * **

check=10-(i%10);
* * * * *** * * *
** ** * * **** ***** *** ISBN");}

  else
*** *** * * * * ** *** * * * * * * ** * ISBN");}

return 0;

}
[] - answered by (-32 points)
ID: 33455 - Available when: Unlimited - Due to: Unlimited

edited by
0 1
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main()
{
   long whole=0;
* ** ** * *** * ** *** * ** isbn;
* * ***** **** ** * ** **** ** *** *** * *** &isbn);
** **** * * *** *** n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13;

* ***** ** ** ** * **** * ***** *
* * * * * ** * * ** ** * *** * *
* * * * * ******* ** ** ** ** ** ** ***
* * *** * *** **** *** * ** * **
* *** * **** ** ** * ** * * * **
* * ** **** * * * * *** **
* *** ** ** * ** ** * ** * ** * * *** *
* ****** ** ** ** *** *** * * * *
*** ** * ** ** ***** * *
* * ** * * * ** **** *** * * * ****
* * * * * * **** ****
* * * * * * * * ** ** ** * *
* * * * * *** ** * * * **
whole = * * **** *** ** *** * * * ** ** * * * *

printf("%ld", whole);
if (10-(whole%10)==n13)
****** ** ** * * * ***** * ***** * ** ISBN");
    }
* * * * * **
*** ** ** * * ** * ** * *** * ** * * ** ** * * ISBN");
* * * * ** * *** *

* ** * * ** ** * ** * *** ** 0;
}
answered by (323 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main()
{
   long whole=0;
* * * *** ** **** * isbn;
** *** *** ** * ** ****** * * **** ** ** * &isbn);
* ** ** ** * * * n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13;

* * ** * * * *** ** ** ***
* *** ** * ** ** ** * * *** * * *** *
** ***** ** * * * *** * * ** * ** ** ** **
**** * * * * * * * ** * * ******
*** * **** * * * ** * ** * * ** * * * ** *
** ** ********** ******* * *** * **
* ** ** ** * * ** * ** ** ** *** * *
** * * * **** *** * ***** ******** *
*** ** * * * * ** ** * * * *
* *** *** ** ** ***** ** * * **
*** ** ** * * * * * *** * *
* ** * ***** **** * * * *
** **** ** ** ******** *** **
whole = *** **** * * ** * ** * * *** ** *** ** *
if (10-(whole%10)==n13)
** *** * * ** * ** * * ** * ** * **** ISBN");
    }
*** * ** *** **** ** *****
** * **** ** ** * * **** * * * * * ISBN");
* ** * * * * *** * ** **

* **** * ** ** **** *** 0;
}
answered by (323 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.6.169
©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.3k views
2 like 0 dislike
77 answers
[Exercise] Coding (C) - asked Oct 19, 2017 in Chapter 5: Selection Statements by thopd (12.1k points)
ID: 27667 - Available when: Unlimited - Due to: Unlimited
| 8.6k views
12,783 questions
183,442 answers
172,219 comments
4,824 users