3 thích 0 k thích
15.8k đã xem

Please take a look at the uncompleted program in the bottom and fill in the gaps with properly output format to complete the program in order to display the following output:
把還沒完成的程式寫完
Remember: Direct output or cheated output is always forbidden.

#include <stdio.h>
int main()
{
    int x = 21, y = 0xa , z = 077;
    printf("______________ \n", x);
    printf("______________ \n", x);
    printf("______________ \n", x);
    printf("______________ \n", x);
    printf("______________ \n", y);
    printf("______________ \n", y);
    printf("______________ \n", y);
    printf("______________ \n", z);
    printf("______________ \n", z);
    printf("______________ ", z);
    return 0;
}

Required output:

21
 21
15
25%
A
 a
10
77
077
63

 

[Exercise] Coding (C) - đã hỏi trong Chapter 3: Formatted Input/Output bởi (12.1k điểm)
ID: 26463 - Xem được từ: Không giới hạn - Hiệu lực đến: Không giới hạn

đã sửa bởi | 15.8k đã xem

87 Trả lời

0 thích 0 k thích
Hidden content!
#include ** ***** *** **
int main()
{/*21
 21
15
25%
A
 a
10
77
077
63*/
* * * ****** *** ** * * * x = 21, y = 0xa , z = 077;
* **** * ** ** *** * ** ** * * x);
* ** **** * * * ** ** ******* ** * %d\n", x);
* *** * ******* *** * ** *** **** ** x);
* ** ** * * *** * * ** ** *** * x);
****** * * * *** * * * **** * ** ** * y);
* ******* * **** * ** *** * ** %x\n", y);
** * * * * * * * ***** * * *** ***** * ** * y);
* ** * *** * * * * * **** * ** ** * * z);
* **** ** * ** ** * *** * **** ** * z);
* ** * ** * ** ****** * ** **** ** *** * z);
**** * ** * ** * ** * 0;
}
trả lời bởi (82 điểm)
0 0
Case 0: Correct output
0 thích 0 k thích
Hidden content!
#include <stdio.h>
int main()
{ int x = 21, y = 0xa , z = 077;
*** *** ** ** ** * * ** x);
  printf(" %d\n", x);
* * * * * * ** ** **** * * ** * x/7*5);
* * * ** * * **** **** ** ** ** ** ** * x*100/84);
** *** * ** * *** ** ** * ** * ** * y);
* * ** ** ** * *** ** *** * * * * ****** * * * **** %x\n", y);
* ** * * * * * * * ** *** ** * * *** * * y);
** * * * * * * **** ** ** ** ** *** * **** **** ** *** ** * * * * z);
*** * ** * * ** **** *** ** ** * * * ** ** * ** * * **** **** z);
**** * * *** ** * * * * * * * ****** * * * * * *** * ** ** * * * ** x*3);
* * * *** * * * ** ** ** ** * *** ** *** * * *** ** 0;
* **** *** * **** ** ** ****** * ** ** ** * * ****
trả lời bởi (-66 điểm)
0 0
Case 0: Correct output
0 thích 0 k thích
Hidden content!
#include *** *** ** **
int main ()
{
**** ** x= 21, y= oxa, z = 077;
  
* * * * ** * * * * *** x);
* * * * *** ** * * ** %d\n", x);
* ** ** ** ** ** ** ** * * * * x);
* **** ** * *** * *** * * * x);
******* ** * * * ** ****** * * y);
* * *** * *** * * ** * ** * y);
* * *** ** * ** * * * y);
* * ** *** ******* ** ** * z);
****** ** * * ****** ***** ** * *** z);
*** * * * * ** z);
** ***** **** * 0;
}
trả lời bởi (-167 điểm)
0 0
prog.c: In function 'main':
prog.c:4:17: error: 'oxa' undeclared (first use in this function)
   int x= 21, y= oxa, z = 077;
                 ^~~
prog.c:4:17: note: each undeclared identifier is reported only once for each function it appears in
prog.c:14:15: warning: unknown conversion type character 0xa in format [-Wformat=]
   printf("%.30\n", z);
               ^
prog.c:14:10: warning: too many arguments for format [-Wformat-extra-args]
   printf("%.30\n", z);
          ^~~~~~~~
0 thích 0 k thích
Hidden content!
#include <stdio.h>
int main()
{
    int x = 21, y = 0xa , z = 077;
** ** ** * ** * * * ** ** * ** x);
* * * ** *** * *** ** * ** ** * * ** ****** * x);
* * *** ** * **** * ** ** * \n", x);
* ** *** * * ****** **** ** * ** x);
** ** ***** * ***** **** ******* * y);
* * ******* * * ** *** ** ** * ** y);
** *** *** * **** ** * ** ** y);
***** * * ** ** * * *** ******* * * * * z);
*** * ** * * * ** * * * * **** * z);
*** * * **** ** ** * * * * ** * ***** z);
** ****** ** **** * * * **** * 0;
}
trả lời bởi (-32 điểm)
0 0
Case 0: Wrong output
0 thích 0 k thích
Hidden content!
#include <stdio.h>
int main()
{
* * * * * * ** * x = 21, y = 0xa , z = 077;
*** ** *** * *** ** * ** *** ** * * * * x);
*** ****** ** ** ** *** * * * * * * %d\n", x);
*** *** * ** * * * * * ***** * * ** * ** x);
** ** * ** * **** * ** *** * ** * * * x);
** * * * * * * *** ** ** ** * * * * ** y);
** * * *** ** ** ** * %x\n", y);
* *** ** * ** * *** * * * *** * * y);
* ** * ******* ** * ** * * z);
* *** * ********** * ** ** *** z);
* ** ** * ***** ** * * * * * ****** *** z);
* * ** ** *** * **** 0;
}
trả lời bởi (64 điểm)
0 0
Case 0: Correct output
0 thích 0 k thích
Hidden content!
#include<stdio.h>
int main()
{
* * * * * ***** **** ** x = 21, y = 0xa , z = 077;
*** * * * * * * * * ** *** * ** * *** x);
* ** * * *** ** ** * **** ** * ** ** x);
** * * * * * * *** **** * ** ** ** * x);
*** ** * ** * *** ** * * ** ** *** ** * *** * x);
** ** ** * ** * * ** **** * **** y);
** ** *** *** ** * **** ** * ******* ** * y);
* * ** * * * * ** ** ** ** y);
* ****** * **** ** ** **** * * * z);
*** ** * *** * *** * ** ** * *** * *** * z);
* * * * *** ****** * * * **** * * z);
    return 0;

}
trả lời bởi (-329 điểm)
0 0
Case 0: Correct output
0 thích 0 k thích
Hidden content!
#include <stdio.h>
int main()
{
    int x = 21, y = 0xa , z = 077;
* * * * *** ** ** * ** *** * * x);
** ** ***** ** *** *** * * * * *** * * * x);
** ** * * ** ****** * *** * ** x);
** ************ * * ********* *** ** ******** * x);
* *** ** * * ** * *********** * * * y);
* ** * *** * **** * ** * ** ** ** ** y);
***** * * *** *** ** * * * * ** ** **** * ** ** * y);
* * ** * ****** * ** ** **** * * ** z);
* * ** * * * * ** * * ** *** z);
*** * * * * ***** * * *** *** **** * * * z);
* *** ** * * * **** * * *** 0;
}
trả lời bởi (-32 điểm)
đã sửa bởi
0 0
Case 0: Wrong output
0 0
Case 0: Correct output
0 0
Case 0: Correct output
0 thích 0 k thích
Hidden content!
#include<stdio.h>
int main()
{
* * * ***** * *** ** * * x = 21, y = 0xa , z = 077;
* ** *** * *** * * **** ** * ** * x);
** * ** * ** * * * *** * * * %d\n", x);
* * *** * * * * ****** ** * * ** ** x);
* *** ***** * * ** * *** * * **** * * ** x);
** ** * ** ** *** **** * * ****** *** y);
** * *** * ** * * * *** **** ** %x\n", y);
** ***** * ** ****** **** * ** * * **** y);
** ** *** * ** ** * *** * * **** ***** z);
** *** * * *** * * ***** * * *** * z);
* * *** * * ** * **** * * * * *** ** * z);
}
trả lời bởi (-214 điểm)
0 0
Case 0: Correct output
0 thích 0 k thích
Hidden content!
#include <stdio.h>
int main()
{
    int x = 21, y = 0xa , z = 077;
*** *** ** *** ** * * *** * ** **** **** x);
* * * * ** ** ** ** **** **** ***** *** x);
* * ** **** ** * ** ****** *** ** * *** x);
* *** **** * * * * **** * * * *** x);
* * * ** ****** *** *** ** * ** * ** y);
******** ****** ** * *** ** * ** ** * ** ** ** y);
* * ******* * * * * * * ** * ** y);
* ** * * ***** * * ** * ****** * **** z);
******** **** * ** * ** * * ** *** * ** * z);
* * **** **** * * **** **** *** * ** z);
** * * * ** * * ** * *** 0;
}
trả lời bởi (-16 điểm)
đã sửa bởi
0 0
Case 0: Wrong output
0 0
Case 0: Correct output
0 0
Case 0: Correct output
0 thích 0 k thích
Hidden content!
#include<stdio.h>
int main()
{
* * * * ** *** * * * * * x = 21, y = 0xa , z = 077;
* * **** * ** * * ** ** * * ** x);
***** ***** ** *** ** ** * ** ** * *** * x);
**** ** ** * *** * ** * * * x);
* **** ** ** * ** ** ****** * ** ** * x);
* * * **** * **** ** ***** ** * ** y);
* **** ** * ** * * *** ** y);
* ** *** * * * * * **** * * * * * ** y);
**** ***** * ** * *** ** ***** * * z);
*** * ** **** * ** * ** * * * ****** * * z);
* *** **** * * *** ** * * ** **** z);
    return 0;


}
trả lời bởi (-329 điểm)
0 0
Case 0: Correct output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.50.51
©2016-2025

Những câu hỏi liên quan

1 thích 0 k thích
75 trả lời
[Exercise] Coding (C) - đã hỏi ngày 12 tháng 10 năm 2017 trong Chapter 3: Formatted Input/Output bởi thopd (12.1k điểm)
ID: 26464 - Xem được từ: Không giới hạn - Hiệu lực đến: Không giới hạn
| 13.8k đã xem
3 thích 0 k thích
116 trả lời
[Exercise] Coding (C) - đã hỏi ngày 5 tháng 10 năm 2017 trong Chapter 3: Formatted Input/Output bởi thopd (12.1k điểm)
ID: 25729 - Xem được từ: Không giới hạn - Hiệu lực đến: Không giới hạn
| 19.5k đã xem
12,783 câu hỏi
183,442 trả lời
172,219 bình luận
4,824 thành viên