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

26 Answers

0 like 0 dislike
Hidden content!
#include<stdio.h>
int main(void)
{
*** * * * * ** ** * * a,b,c,d,e,f,g,h,i,j,k,l,m;
** * ** **** * * * * * *** *** ** * * *** ** ***** * ** ** ***** ** ** * * **** ** * * * * ** ** ** * * * ** * ** *

***** * ** * ***** ** check,sum;
*** * * ** * *** * ** * * * * * ** * * * * *
* * * ** * * * * ** ** * **** ** * * * *
* ** * * *** ** ** ** * ** **

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

    



** * ** * ******* * * * != m)
***** * * * * * * * *
** * * * ** * * ****** ** * **** *** *** * * **** ***** ISBN");
*** * * ** * ** * ***
* * * ** * * **
****** * * *** ** *
*** **** *** **** * ** ** ** ** * *** ISBN");
    }

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

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

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

***** ** * * ******* * **
* * ******* ** ** *** * * * ** * ISBN");}
** * * * * * * *
* ** * **** ** *** * * * **** ** * ** ** ** ** ISBN");
******* * * * *** ** **
* *** ** ****** * *** ** * * 0;
}
answered by (42 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()
{
   int ** * **** *** * **** * ****

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

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

** * * * * ** * ** *
* ****** *** ** ** * * * *** *** ISBN");}
*** ** * ** ** * * ** ** ****
**** ** * *** * * ** ****** * * ** **** * * *** * ISBN");
* * ** * * ***** * *
*** ** * ** * * ** ** * 0;
}
answered by (-167 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(void)
{
** * ****** * * ***** * a,b,c,d,e,f,g,h,i,j,k,l,m;
* * * ** * ** * * * *** * * *** * * *** * * * ** ** *** * *** * ** ** ***** ** * ** * ** * ** * ** ** * * * *

* ** **** * * * ** * check,sum;
**** * *** * * *** * ** ** *** ** * * **
** *** * ** *** *** * ** * * ** ** * ** * ** **
* **** * * *** ********* * ****** *

* * * ** * *** * * * * * * ***
* ** * * ** ****** *** **
*** *** * * *** * * * ** * ** ***
    }



**** ** ** * * ** * ** *** != m)
    {
* * ** ** * * ***** * ** * ** * ** ***** ** ** **** ISBN");
** * * * ** * ** * **
* ********** ** ** *
***** * ** * * *******
** * ** **** * * ** ** * * **** * ISBN");
* * * * * * * *

return 0;
}
answered by (-249 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Wrong output
0 like 0 dislike
Hidden content!
#include<stdio.h>
int main(void)
{
* * ** ******** *** a,b,c,d,e,f,g,h,i,j,k,l,m;
* ****** * ** *** *** ***** * * ** ** * * ***** ** * * * * ***** * ** *** **** **** ** * *** * * ** ***** ** * * ** * ** * *** * ****

** ** **** ** *** * * check,sum;
* *** *** **** ******* * ** **** *** * * * ***
** ***** ***** ** *** * * ** * ** * * ***** *
* ************ ** ** * * * *

* * ** * ** *** * * **
** ** *** ***** *** * **
** ** * ** * ** * * *** ** *** ** ** ****** ** *********
    }



* ** ** * ** * * ** * * * != m)
    {
* * * * ** * * ** ** ** *** *** * ** ** *** * * * ** **** ** ISBN");
** * *** ** ***
* ***** * * * * * * ** * **
* ***** ** ** *
* * * * ** ** ** * ** * * * * **** * * * ISBN");
* *** ** * ** * **

return 0;
}
answered by (-249 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Wrong output
0 like 0 dislike
Hidden content!
#include<stdio.h>
int main(void)
{
** ** * ** * * **** * * a,b,c,d,e,f,g,h,i,j,k,l,m;
* *** ** * ** * * *** **** * *** ** * ** * ** * ***** *** * ** *** ***** *** *** *** * ** ** *** * * **** *** ** ***

* ******* ** * ** * * check,sum;
*** * * * * ** * * * * **** * * *
****** * * * * ** *** * *** *** * ** *
**** * * ** * ** ** **** **** **
    


** ******** *** ** * * * != m)
* ** * ***** ******* *
* ** * *** * * ** *** ** **** * *** * **** * * * *** ISBN");
** **** * * * * *
* ** * *** * *
* * *** * *
* ** * * * ** ** * * * ** ** ** * * ISBN");
** * ** *** * * * * **
    
return 0;
}
answered by (-249 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Wrong output
0 like 0 dislike
Hidden content!
#include * ** *** **

int main()
{
** *** * ** * * a;
******* * **** *** * ** * * ** * *
* * ** ** *** **** * * * * *****
* ** * ** *** **** *** 0;
}
answered
0 0
prog.c: In function 'main':
prog.c:6:10: warning: too many arguments for format [-Wformat-extra-args]
    scanf("a",&a);
          ^~~
0 like 0 dislike
Hidden content!
#include<stdio.h>
int main(void)
{
* * ** * * * a,b,c,d,e,f,g,h,i,j,k,l,m;
* * ** *** ** * ** ** * ** * *** * * * * ****** * * * ** * * *** * ** * ** ** *** ** * * * * ** *** * ** **** * ** * * *

** ** * * * *** ** * check,sum;
** ******** * ** ** * **** ** * *** ***
*** ****** * * **** *** * * **
    


** *** * *** * *** ** != m)
** * * * ** * *** ** **** *
* ** * ** * * * * * ****** * * * **** * * * * * * ISBN");
*** * * ** *** * * **
* **** *** * ** **** * *
* * ** * * * * * * ** **
** * * * * * ** ** ** ** *** *** * ** ISBN");
* ** **** ** * ** *
* * **** ** **** ** *
return 0;
}
answered by (-249 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13;
    int check;
    int sum;

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

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

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

**** * ** **** **** ** * * *** * ** * * ** * ** (check==s13)
* **** ** * * * *** ***** ** * *** * ** **
**** *** *** ** * * * *** *** * ******** * * *** *** ** * **** * * ** * * ** * * ISBN");
** *** ******* ** * ** ** ** ** * **** *****
* **** * * ***** * ** * * * * * ** ***** * * *** *
**** * * ***** ** * ****** *** ** ** *** *** *
*** ****** * * * *** * ** * * * * * *** * ** * * ** ****** * * * **** * * * ** *** * ISBN");
* * ****** ** * ** * ** * ** ** ** *** * ***** ** *

}
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 **** ** **
#include ** * * * ***

int main()
{
** * ****** *** **** * a,b,sum;
** *** * *** ** * ** * * **** * *** * ** * * * ** *
***** * * *** *** ** * number;
* **** ******* ** * * ** odd number;
**** *** *** *** ** * **
**** * *** * **** * *** * (10-(sum%10)=last number)
* * ** ****** * ** *** * * * * * * * *** ****** ISBN");
** * * ** ** ** ** ** *
* * * * * * *** * ** * * * * ************ ** ** * ** ISBN");
** ** *** ** ***** * * ** 0;
}
answered by (-108 points)
0 0
prog.c: In function 'main':
prog.c:8:7: error: 'odd' undeclared (first use in this function)
     a=odd number;
       ^~~
prog.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
prog.c:8:11: error: expected ';' before 'number'
     a=odd number;
           ^~~~~~
prog.c:9:7: error: 'not' undeclared (first use in this function)
     b=not odd number;
       ^~~
prog.c:9:11: error: expected ';' before 'odd'
     b=not odd number;
           ^~~
prog.c:10:12: error: lvalue required as left operand of assignment
     a*1+b*2=sum;
            ^
prog.c:11:21: error: 'last' undeclared (first use in this function)
     if (10-(sum%10)=last number)
                     ^~~~
prog.c:11:26: error: expected ')' before 'number'
     if (10-(sum%10)=last number)
                          ^~~~~~
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.71.254.32
©2016-2025

Related questions

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.5k 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
| 9.1k views
0 like 0 dislike
15 answers
[Exam] asked Dec 9, 2017 in Midterm by thopd (12.1k points)
ID: 36755 - Available when: 2017-11-15 14:10 - Due to: Unlimited
| 2.7k views
12,783 questions
183,442 answers
172,219 comments
4,824 users