1 like 0 dislike
11.2k views
Show more...
[Exercise] Coding (C) - asked in Chapter 4: Expressions by (12.1k points)
ID: 26465 - Available when: Unlimited - Due to: Unlimited

edited by | 11.2k views

91 Answers

0 like 0 dislike
Hidden content!
#include <stdio.h>
int main (void)
{
* ** ** * * ** ***** a;
* * * ** * * * **** * b;
* *** * ****** *** * * * *** ** **** ** ******
* ** * * * **** * * ******* ** * * * ** ** *
*** ***** * * * ** ** * * * ** * ** ** ****
    }
** * ** * ** * ** ** ** * * **** *** * * ** *
***** *** ** * * * * **** ** *** ** * * ***** ****
* * * ** * *** * **** **
**** *** ** ** * * *** * ** *** * *** **
** * *** * ***** ******* ** *** * * ** ** *
    }
* * * ******* * * ** ** *** ** * * *
** ** * *** * *** ** **** ** * * * ** *
    }
*** ** * ** * * * * *** * ** * ** *
* * **** ** ** ** 0;
}
answered by (-204 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>
int main()
{
** * ** ** * * * ** * price=10,water;
* * ** * *** * *** * * *** ****** * *** *
****** **** * * ** ** **** * * * * **
**** ** * * *** * * ********* * * * * ***
    }
**** ** *** * ** *** **** * * ** * * * *** *** ***** * *****
** **** ** ** ******* **** *** * ******* **** * *** * *
    }
* * ** ** ** ** * * *** ** ** * * ** * ** ****** *
* *** * ** ** ***** ** *** ** *** * * * * * **** * *** *
    }
* ** *** * * * * * if(water>60){
* ** *** * ** * * ** * ** * * * * * * * * * * * *** * * **
**** *** * ** **** ***
** *** **** * ** * * * **** %.2f",price);
* ** *** *** **** * * * 0;
}
answered by (-116 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
0 0
-----------Re-judge-----------
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
0 like 0 dislike
Hidden content!
#include <stdio.h>
int main()
{
* * * *** * * * * **** price=10,water;
***** * ** *** *** *** * ** *** * * ** * * *
* *** * **** * * **** * ** * * * * * **
* * ****** ** *** * *** ** ** ** * *** ** * *** **
    }
**** **** * * * ** * * * * * * ** * ** ** ** * * * ***
* * * ** * ** ** * ** *** *** * ** * ** * ** * ** * *
    }
* ** * **** * * * * ***** *** ***** * ***** *
** ** * * * * *** * * *** * * * *** *** * * * ** * **
    }
* *** * * * *** ** if(water>60){
* * * * * *** ** ** * * *** ** * * *** * * ******* * *
* ** * *** ** ** * *
* * * ***** *** * ** * *** ** %.2f",price);
* * * *** *** **** * ** * 0;
}
answered by (-116 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>
int main()
{
*** * ** * * *** *** * price=10,water;
* * *** * *** * ** * * **** * *** **** * *** * ** * ***
** ** * * * * ** ** *
** *** * * * ** * ** **
****** * * ** * * ****** * * ** * * *** *** *
    }
**** * * ** *** *** * * ** * *** ** * * ****** * **
* ** *** * * ** * ** * * ** ** ***** ** * * * ** * *
    }
* * * * ** *** *** ** * * * *** * *** ** * **** ** * *
****** * ** ** * ****** ** * * * * * * ** ** * ***
**** ** * *** * * * * *
** * * *** * * *** ** * if(water>60){
* * ****** *** ** *** *** *** * ******* ** ** ** * * ** * **
    }
* * * * ** * ** ** * * %.2f",price);
** *** * ***** * ***** 0;
}
answered by (-116 points)
0 0
prog.c: In function 'main':
prog.c:6:5: error: statement with no effect [-Werror=unused-value]
     water;
     ^~~~~
cc1: all warnings being treated as errors
0 like 0 dislike
Hidden content!
* ** *** ** ****

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

*

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



* ** * ***

* *

* *** **

*


* * *

* *

* * *



*



*** * ** **



****

*

*
* ** * *

**

** **
*
*
** *

*
* * *** ** ** * * * *
*
*
answered by (-336 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
0 0
-----------Re-judge-----------
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
0 like 0 dislike
Hidden content!
** * * **** **
*
** *
* * *
**



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


*
* *** *

* *

**
*



** * ** ****

*** *
*








* *** * *

**

*




** * * *

*

***
*

*** *
*

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

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

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

*

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


* * ** **

** * *

* *




* * ******



*







* ***** * *

*

* *

*


** *** * ***

* *

* * *

*
* *


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

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

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

*

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



* * *** *

*

* ***

**


****** * * **

**

****



*



** *** * * **



* **

*


*

*
*
* **


*


** * * * *

answered by (-336 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 like 0 dislike
Hidden content!
#include ***** *
#include *** ** *** *

int water_amount;
double price=10;

int main()
{
*** *** * * ** ** * * * ** * ** * * *** * * **

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

* *** * ** *** ** * * ******* * * * * **** = price * * * * * *
* * ****** ** * * * * ***** * ** ** ** * = water_amount - (water_amount - 60);
* * * * * **** * * *** **
** ** ** ** *** ** ** * * * ** ****

****** ** ** ** * * ** ****** * ** ****** ** = price * ** *****
** *** * * * ** * ** * *** *** *** * *** * *** *** = water_amount - (water_amount - 50);
**** **** * **
* ** ** * * **** * * **** **** * ***

** ** ** * *** *** * * * * ** ** * ** * * * * = price ** *** *** *
* * * ** * ** ** **** * * * * ***** ** ** = water_amount - (water_amount - 30);
** * * * ** * * * *
** * *** * * ** *** * * ***

**** *** * * ********** ** * * ** * **** * ** ** = price +(water_amount*0.6);
** * ** * ** * * ** * ***** * ** * ** ** * ** * = water_amount - (water_amount - 30)
**** ***** * * **

* ** * * * ******* * *** * *** ***** * *** %2.2f", price);
* **** * * * * 0;
}
answered by (-286 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
0 0
-----------Re-judge-----------
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
0 like 0 dislike
Hidden content!
#include * *** ** ** ****
#include * * ** * * ****

int water_amount;
double price=10;

int main()
{
*** * * * *** ****** *** **** ** * * * * ****

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

****** *** * **** ****** *** * * * * **** * *** * = price * **** ***
** * *** ** * ****** ***** * **** *** ** ** ** * * = water_amount - (water_amount - 60);
** * * * **** ** *
**** ** * * * *** * *** ** * ** ***

* ** * * ** ** ** * * **** ** * *** ** * * * = price +(water_amount-50)*1;
***** * * * ** * * * * * ** **** ** ** ** * **** = water_amount - (water_amount - 50);
* **** * * ***** *
* * * * * ** ***** * * * ****

* * ** * *** *** *** **** ** ** ** ** ******** **** * = price * * * * **
* * * *** * * ** * *** * *** * * * ** * *** = water_amount - (water_amount - 30);
* * * * ** * *
* ** ** * * *** * ** * **** * *** **

** ** * ** ** *** * ** *** ** ****** **** ** ** * = price +(water_amount*0.6);
* * *** *** **** * ** *** ** ** *** *** *** ******** * = water_amount - (water_amount - 30)
* * * ** ** ** *

***** * **** ***** ** ** ** * ** * * ** * * price);
** * ** * **** * ** ** * 0;
}
answered by (-286 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.100.161
©2016-2025

Related questions

3 like 0 dislike
87 answers
[Exercise] Coding (C) - asked Oct 12, 2017 in Chapter 3: Formatted Input/Output by thopd (12.1k points)
ID: 26463 - Available when: Unlimited - Due to: Unlimited
| 9k views
3 like 0 dislike
86 answers
[Exercise] Coding (C) - asked Oct 5, 2017 in Chapter 4: Expressions by thopd (12.1k points)
ID: 25730 - Available when: Unlimited - Due to: Unlimited
| 8k views
12,783 questions
183,442 answers
172,219 comments
4,824 users