0 thích 0 k thích
10.5k đã xem

Question 8: Please a write a program that receives 2 integer numbers, then outputs numbers between those inputs. If the inputs are equal, write the input number instead.

*No space between the output numbers*

Input1

1 5

Output 1

12345

 

Input2

-3 3

Output2

-3-2-10123

 

Input3

5 5

Output3

5

 

[Exam] đã hỏi trong Final examination bởi (5.9k điểm)
ID: 41942 - Xem được từ: Không giới hạn - Hiệu lực đến: 2018-01-17 16:30

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

30 Trả lời

0 thích 0 k thích
Hidden content!
#include * * *
#include ** *** ** *

int main(int argc, char *argv[])
{
****** * ** **** ** ** * a,b,c;
* * * * ** *** ** * ** ** ** ** ** ** &a);
* *** * ** ** ** * * * * *** ** &b);
** ** * ** * * * * a<=b; a++){
* * * *** * ** * ** ******* * ** * ** **** * *** ***** * * ** *** *** ** * ****
* * ** * *** ** *
* ** ** * ** ** * ***** *
* * * ****** * ** ** * * * * * * * * * *  
** * *** * ** * * * * * * 0;
}
***** * ***
100/100 trả lời bởi (252 điểm)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 thích 0 k thích
Hidden content!
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int a,b;
* ** * * *** ** * * * ** ** * ** * , &a, &b);
    while(a<=b) {
* ** *** * * ** ** **** ** **** ** ** *** ** * * *** * * * ** ** ** ** * * *** *** *** * *** * ** ** * ** * ,a);
* * * **** * ***** **** * * ** *** *** * * ** **** * **** *** * *** * *** ** ***
* * * **** * * * * * ** * * ** ** * *** * ** * ** * ** ** **** * * * * * * ** ** *
* * * * * * * ** * * * ** * * * * * * * * * * *** *** ** * * ** * * *
** * ** * * * * * ** * * ** * * *** *** * ** ** * * * * * * ** ** ** * * ** *** * ***
** ** ** ** * * * * * * * * * * ** * * * **** ** *** *** ***** ** ** *** *** * **** *
* * * ** * **** * * * ** *** * *** * ***
    return 0;
} ** * * * * *** *** * ** ** * * **** ** ** ***** ***** * * *** * * ****
100/100 trả lời bởi (246 điểm)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 thích 0 k thích
Hidden content!
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  int a,b;
* *** ** * * * * * * * ** * * ***
  while(a<=b){
* * ** * * *** ** ** * *** ** * ***** ** ** * * **** ** ** ** *** * * ** *** *** * * *** **
** * * * ***** ** * ***** **** * * ** * * **** * * ****** ******* * * ** **
*** * ** ** * **** ** * * * * * *** ** * ** **** * * **** * * ***** * * *
* ** *** *** ** ** ** * * * ** * **** ** * * * *** * **
* * ** * * **** * * *** * * * ****** * * * * *** * * * ** ** * **** ** ** ****
* *** *** ** **** * * * *** *** ** * ***** *** * * * * ** * ** * * * * **
* ** ** * * *** ** ** ** * **** *****  
  return 0;
}
100/100 trả lời bởi (273 điểm)
đã sửa bởi
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 thích 0 k thích
Hidden content!
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int a,b;
*** * *** ***** ** * ** *** * * * &a, &b);
* * * * ** **** * * {
** * ** * ** * * ****** * ** * *** * * *** * * * * * * * * *** ** ** printf("%d" ,a);
** * ** ** * * *** * * * * ** * ** ** ** * **** * **** * * **** * *** ** * *** ** *
* * **** * * *** *** * * ** *** *** ** **** ** ** ** * *** * *** * * * **** ** * * ** * **
** * *** * * ***** * * ****** ** * ** *** ** ** ** * *** * ***** * * * **
** * ** * * * * * * * * ** ***** * ******** ** * * ***** *** * ** *** ** *** * * ** * * * * * * ** ** ,a);
* ** *** **** * ********** *** *
* ** *** * * **** ** ** * **** * * *** *
    
    
* ** ** ** ** ** * * 0;
}   
*** * * * ** * * * *** * *** * * * * ** * ** * ** * ***** * ***** ** * * **** ******* * * * ****** ** ** **** * * ***** ***** *** **** * ** * **** * ****** ** * * * *
trả lời bởi (246 điểm)
0 0
prog.c: In function 'main':
prog.c:9:14: error: stray '\302' in program
              \xc2\xa1@ printf("%d" ,a);
              ^
prog.c:9:15: error: stray '\241' in program
              \xc2\xa1@ printf("%d" ,a);
               ^
prog.c:9:16: error: stray '@' in program
              \xc2\xa1@ printf("%d" ,a);
                ^
0 thích 0 k thích
Hidden content!
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  int a,b;
** ** * * * * *** *** * * ** * * * ***
  while(a<=b){
* ***** *** ** **** *** ** ****** *** ***** * * * *** ** * ** ** ******** ********* *** * ***
* ** **** ** *** * ** ** * * ** * ** * ** * * ** ** * *** * * * * ** ***** * *
* * ** * ** * * * *** * * * * * * * * ** * ** * *
**** * **** * * * * ** ** * * ** ** ***** * **** * ** * ** ** ** ** **
* * * *** * ** * ** * * * ***** * * ** ** **** * ** ** * ** *** *** *** ** * ** * * *** *
**** * * * * ** * * *** * * * * ** * * *** * ** * ** * ** **
** ** ** ********* * * * *  
  return 0;
}
trả lời bởi (273 điểm)
đã sửa bởi
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 thích 0 k thích
Hidden content!
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int a,b;
*** * * * **** * **** ** * ** * ***** * * , &a, &b);
*** **** ** ** **** ****** * ** * {
** *** *** ** * * ******* **** *** * ** * ** ** * ** *** ***** * *** *** ** * *** * * **** * ******* ,a);
* * * * ** * *** * ** ** ****** * * * ** * * **** * ** *** *** * * **** *
** ** * * ** ** ** * * *** ** ** * * *** *** * * ** * ** * * ** * * * ****
**** *** ***** ** * * * * ** * ** *** * ****** * * * * ******* *** *** ***
** * ******* ** * *** ** ** ** **** **** *** ** * **** * *** ** ** * * *** *** * *** * *** **** * * * ******* **
* ** ** * ** * *** * * * * * ** ** * * ** * ** ** *** * * ** ** * ** * *** * **
*** * **** ** *** * * * *** * *
    return 0;
}
100/100 trả lời bởi (183 điểm)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 thích 0 k thích
Hidden content!
#include <stdio.h>
#include <stdlib.h>


int main(int argc, char *argv[])
{
  int a,b;
* * * ** ** * * ** ,&a,&b);
** ** * **** **** * ***
** * * * * * **** ** ** * ** **** ** * * * **** * ** * * * * * ** *** ****** ** ** **
* * * * * * ** * * ** **** * ** * * * **** ** * *** * * ** * **** ** *
** * **** * * ***** * ** * * * * ** * *********** **** * * *** * * **** ***
** ***** ****** *** ** * *** *** * * * * ** ***** * ** * *** *** * * ****** * * ** (a==b)
*** * ** * *** * *** * * *** * * ** * * * *** ***** * * ***** * ***** * ** ** ** a);
  
  
* * * **** 0;
}
100/100 trả lời bởi (192 điểm)
đã sửa bởi
0 0
prog.c: In function 'main':
prog.c:8:9: warning: too many arguments for format [-Wformat-extra-args]
   scanf("d%d" , &a, &b);
         ^~~~~
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 thích 0 k thích
Hidden content!
#include <stdio.h>
#include <stdlib.h>


int main(int argc, char *argv[]) {
* * * *** * ** a, b;
* ** * ** * *** * ** *
* * *** ** * * ****** ** * ***** **** ** * *
*** ** * ** ** ** i=a-1;
* * * ****** * * * * **** * * **
* * * *** * *** * ** * ** ** **** * ** ** * * *** * * ** * * ** * * ** **
* * * * * * * * *** * ****
*** ** * ** * * * *** * ***** **** ** * ** **** * * * *
** * * * * * * * *** ** * ** ***** *** *** * *********** **** ** *** * * * * ** * *** * * ** *
** * * * *** * ** * ******** ** * ** ** ***** * * ** ** * *** ** ** ** ** * **** * ***** ** ** ** ** *** ** * **** ** * *
   
   
** * ** *** ** **
    system("pause");
* ** * *** * * 0;
}
100/100 trả lời bởi (221 điểm)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 thích 0 k thích
Hidden content!
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int a,b;
* ***** * ** ** ** * ** ** ** * ** *** * *** , &a, &b);
*** * * ** * *** *** ** * ** {
**** * * ** * *** * * ** * **** ** *** *** * * ** * ** * ************ * ** ** * * ** * * ,a);
** ** *** * ** ***** * ** * ** ** **** * *** ** ***** * ** * * * * ** ** ***** * *
**** **** **** **** * * * * ** * *** ** * ** * ** * *** *** * * * * ** * * ***** * **** *** **
* **** * * * * * * * *** ***** **** * *** * * ** * * * * ** * *** *** ***** *
*** * ** * * *** * ** * * ** *** ****** ***** * * * * * ** * ** * * * ** * *** * *** * ** ,a);
* ** *** **** * * ***** * ** * * * ** ** * * *** ** * * * * ** *** **** * * ** ** **
* ** ** * * ** * * * * ** ** *** ***
    return 0;
}
trả lời bởi (183 điểm)
0 0
prog.c: In function 'main':
prog.c:9:23: error: expected ';' before string constant
                 printf"%d" ,a);
                       ^~~~
prog.c:9:30: error: expected statement before ')' token
                 printf"%d" ,a);
                              ^
0 thích 0 k thích
Hidden content!
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int a,b;
**** ** ** * ** ** * * * **** * * * * ** , &a, &b);
** *** ** * ** * ** ***** * * * * {
* ** ** *** * ** ** **** * * **** *** * ** ** * ** ** * * ** * **** * ** * ** ***** ** ** * ** * ,a);
*** * *** ** * ** * ***** ** ** * **** ** * ** ** * *** * *** * * ** ** * ****** * * *** * *
* * * * ** *** * *** ** **** * * ** ***** ** * ** ** ** ** ** * ** * ***** * *
* * *** * ** * * * *** ** ******* ***** **** ** * * * ***** ** ** ** * ** * * * ***** * * * *** * **
*** ** * ** *** * ** * *** * *** * ** * * * ** * **** * *** ** * * * * * *** ** * * * * ** ** * * * * ** ,a);
* * * * * *** *** * * ** ****** * * ** * *** * ***** ** *** * * * *** * ** * *
** ** ** *** * * * * * * * * *
    return 0;
}
trả lời bởi (183 điểm)
0 0
prog.c: In function 'main':
prog.c:9:23: error: expected ';' before string constant
                 printf"%d" ,a);
                       ^~~~
prog.c:9:30: error: expected statement before ')' token
                 printf"%d" ,a);
                              ^
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:104.23.197.64
©2016-2026

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

0 thích 0 k thích
22 trả lời
[Exam] đã hỏi ngày 13 tháng 1 năm 2018 trong Final examination bởi nat236919 (5.9k điểm)
ID: 41975 - Xem được từ: Không giới hạn - Hiệu lực đến: 2018-01-17 16:30
| 10.2k đã xem
0 thích 0 k thích
21 trả lời
[Exam] đã hỏi ngày 13 tháng 1 năm 2018 trong Final examination bởi nat236919 (5.9k điểm)
ID: 41968 - Xem được từ: Không giới hạn - Hiệu lực đến: Không giới hạn
| 9k đã xem
0 thích 0 k thích
26 trả lời
[Exam] đã hỏi ngày 13 tháng 1 năm 2018 trong Final examination bởi nat236919 (5.9k điểm)
ID: 41937 - Xem được từ: Không giới hạn - Hiệu lực đến: 2018-01-17 16:30
| 5.4k đã xem
0 thích 0 k thích
21 trả lời
[Exam] đã hỏi ngày 13 tháng 1 năm 2018 trong Final examination bởi nat236919 (5.9k điểm)
ID: 41935 - Xem được từ: Không giới hạn - Hiệu lực đến: 2018-01-17 16:30
| 4.4k đã xem
0 thích 0 k thích
23 trả lời
[Exam] đã hỏi ngày 13 tháng 1 năm 2018 trong Final examination bởi nat236919 (5.9k điểm)
ID: 41926 - Xem được từ: Không giới hạn - Hiệu lực đến: 2018-01-17 16:30
| 4.9k đã xem
12,783 câu hỏi
183,442 trả lời
172,219 bình luận
4,824 thành viên