0 喜歡 0 不喜歡
1.7k 瀏覽

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

 

[考試] 最新提問 分類:Final examination | 用戶: (5.9k 分)
ID: 41942 - 從幾時開始: 無限制 - 到幾時結束: 2018-01-17 16:30

修改於 用戶: | 1.7k 瀏覽

30 個回答

0 喜歡 0 不喜歡
內容已隱藏
#include * **
#include * * * **

int main(int argc, char *argv[])
{
* ** ** * ** * * a,b,c;
** ***** * ** * * **** ** * * * *** &a);
* * * ******* *** * * * ** * ** * ** &b);
** ** ** **** *** a<=b; a++){
***** *** * * * ** ** * ******** * ** ** * ** *** ***** ** * * * * ** ** * * * *
*** * * * ******* *
*** * **** ** *** **
** ** **** **** * ** * * * ** * *  
* * *** * * *** * *** 0;
}
***** * * ** ***
100/100 最新回答 用戶: (252 分)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#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 最新回答 用戶: (246 分)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  int a,b;
* * ** *** ** * * * * **** ***** * *
  while(a<=b){
** * * * ** * ** * **** * * * **** * *** *** **** **** ** ***** * * ** ** ** * * * *
** * * * ** ** * ** ** ** *** * ** *** *** ** * * *** * * *** ** ** ** *
** * * * * ***** ** * * * ** * *** *** ** ** *** * ** ** *
* * * * * * ****** * * ** * * * *** ** * ******** ** *** * * ** *
** **** * ** * * * ** ***** ** * * *** * * **** * * * ** **** *** ** * * * ******** *** * * ***
*** * * * ** * * *** * ** * * **** **** ** * * * * * * * ***
* ** * * *** *** * * * *  
  return 0;
}
100/100 最新回答 用戶: (273 分)
修改於 用戶:
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 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int a,b;
* * ** ** *** * * ** * &a, &b);
** **** * *** *** ** ****** * * {
* * ** * ** * * * * ** ** **** ** * * ** * * ** * **** ** * * ** *** printf("%d" ,a);
*** * ** *** ** *** * * * ** * * * ** ** * *** * * ** ** * * **** * **** ***** ****
** * * * **** * * ******* * * * *** ** *** *** * * ** ** * ** *** * ** *** *** *** *
* * * * * ** *** **** * *** ** * * * *** * *** * * * *********** * * * ** **** ** * *** ***
*** **** * * ** * **** ** * * ** *** * * ** ****** * * ** * ******** ***** *** * ** ** * * * ,a);
* * * * ** ** ** * ** *** *
* * **** * * ** * * **** **** *** * * *
    
    
* ** ** * * ****** * 0;
}   
* * *** * *** **** * * * * * ** ** ** * ** * ** ** * * * * * * *** * *** * * * ***** ** * ** ** * * ** *** * ** * * ** ** *** ** * * **** *** ** * ***** *
最新回答 用戶: (246 分)
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 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  int a,b;
********** ** * *** ** * * * * * * ** ***
  while(a<=b){
* ** * * * * * * * *** * * * * ** ** * ** * *** * **** * *** *** ** * ** *** ** ***** **
* ***** * * * *** ** * ** ** * *** * * * * **** * * ** * * * *
*** * * * ** * ** * *** * * ** ** * **** * ** * * * ** * * ****** ** * *
* * **** * * ******* * * ** * * * ***** * ** * * * ****** ***** * ** * * ** ** * *
* * * ** *** * * * * ***** *** * * * * ** ** ** *** * * * **** ** *** * * * *** **** * *****
** *** *** ** **** **** ** * * * * *** * *** ** * **** *** ** *** ****** * * *
** * **** * ** * ** *** *** * ** *** *  
  return 0;
}
最新回答 用戶: (273 分)
修改於 用戶:
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 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int a,b;
*** * * *** * ***** *** * ***** * * , &a, &b);
** * * * * ***** ** **** * {
*** * ** * **** ******* **** * * * ** **** **** ** * ***** ** * * * ** * * *** * * ** * ,a);
******* **** * ** * ** ** ** * *** * * * ** * * * *** *** ** **** ** * * ** * * * * *
** **** * *** * * ** * * * ** ** *** ** *** * * * **** ** * * * *
* * * * * * * ** ****** * ** * * * * * * *** ** **** *** * *** ****** **** ********* * *
* ***** *** ** * **** ******* * * *** ** *** * ****** * * * * * * ** *** * **** **************** * *** * **
* ******* ** ** ** * *** ** ** ******** ****** * *** * * **** ** * * * * * * ** * ** * * **
* ***** * ** ***** * * * * * * ** * *
    return 0;
}
100/100 最新回答 用戶: (183 分)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
#include <stdlib.h>


int main(int argc, char *argv[])
{
  int a,b;
** * * ** **** *** * *** ** ,&a,&b);
* ** * * ** *****
*** * ******** ** **** * * ** * * * * ** **** * ****** ** ** ******* ***** * * * *** * *** *** * ***
** ** ** * **** * *** ** ** ** ** * ** * *** * * * **** *** * * * * * *
***** *** ** * ** * * * * * * ** ** ** *** ** *** * * * ** * ***
** ***** ** ****** * ** * * * ******* ** * **** * ** ** * * *** *** *** * * * * * * ** ** (a==b)
* * *** * * ***** ** * **** * *** ** **** *** * * ** * * *** * * ** ***** * * **** * * * * * a);
  
  
***** ****** ** 0;
}
100/100 最新回答 用戶: (192 分)
修改於 用戶:
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 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
#include <stdlib.h>


int main(int argc, char *argv[]) {
* **** * * * ** ** ** a, b;
** ***** * * ** **** *
* ** ** * * * **** *** * ** ****** * ** * * * * **** *
* * **** * * * * * i=a-1;
* ** **** * ** * *
* ********* * *** * **** * * ***** ******** *** * ** **** ** ** * * * * ***** ** **
***** * ** * * * * * *
* * * **** * ********** *** * ** * * * * * *** ** ** *
* * ** ** ** * ** * * * * ** * * *** ** * ** * **** * *** *** **** * *** * * *** ** ** * **** **** * ** *** *
***** ** ** ** ** *** * **** *** * ***** * * * *** ** *** * * ** ** * ** * ** *** **** ** * * * * * ** * ***** * ** * *
   
   
* ** * * ** * * **
    system("pause");
** ** * * * ** * * * * ** 0;
}
100/100 最新回答 用戶: (221 分)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int a,b;
* ** ** ***** * * * ***** ** ** * ** * , &a, &b);
* ** *** ** * ** * ** ** ******** {
* * * ** * * * ******** ** *** ** ******* * * ** * ** * * * **** *** * **** ** * ** *** ** * * * ** ,a);
*** * ** *** **** ** ** **** * ****** * * * ** *** ** * * ** *** *** * ** ** ** ** ** * ***
* ** * *** * ** * * * *** * ** * *** **** * * * ***** * * * * ** * * * ** *** * *
* ** ** *** **** * * *** * * * * * * * * * * *** ** * * * * * * * * ** * * *** **
* * * ** * ** *** * *** * **** **** * ** * * ** ** * * * * * * ***** * ***** *** * * ** * ****** ,a);
* * * * * *** ** ******* ** * * *** ***** ** * **** **** * ****** ** * * * * ** * *
* *** * ** ** *** ** ** *** ** *
    return 0;
}
最新回答 用戶: (183 分)
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 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int a,b;
* * ** ****** * ** *** *** * ** * * ** , &a, &b);
* ** * ***** * ** ** * * * {
* ***** *** * * ** * * * * * ** * * * **** * * **** *** * ******* ** * * ** ** * * ** ***** ** * * ** * *** ,a);
* **** * * ** **** **** * ***** ** * * *** **** *** * * *** *** ******* * * ** * *** *
* * **** ******* *** ** ***** ** * *** * ** ** **** * ** ******* * * * * **
** ** ****** * ** * ***** * * * *** **** * ** * ****** ** ** ** * *** ** * * * ** * * * ** * * *
* ** * *** *** * ** * * ************ * * ******** * * * *** * **** * *** ** * ** * ***** * * **** ,a);
** ****** * * ** * ** ** * * **** * * * * * * *** * * * * * * * * *** *** * ** ******* *
** ** * ** * *** * * ** * *** *
    return 0;
}
最新回答 用戶: (183 分)
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:172.70.100.198
©2016-2024

相關問題

0 喜歡 0 不喜歡
22 回答
[考試] 最新提問 1月 13, 2018 分類:Final examination | 用戶: nat236919 (5.9k 分)
ID: 41975 - 從幾時開始: 無限制 - 到幾時結束: 2018-01-17 16:30
| 1.4k 瀏覽
0 喜歡 0 不喜歡
21 回答
[考試] 最新提問 1月 13, 2018 分類:Final examination | 用戶: nat236919 (5.9k 分)
ID: 41968 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 1.4k 瀏覽
0 喜歡 0 不喜歡
26 回答
[考試] 最新提問 1月 13, 2018 分類:Final examination | 用戶: nat236919 (5.9k 分)
ID: 41937 - 從幾時開始: 無限制 - 到幾時結束: 2018-01-17 16:30
| 862 瀏覽
0 喜歡 0 不喜歡
21 回答
[考試] 最新提問 1月 13, 2018 分類:Final examination | 用戶: nat236919 (5.9k 分)
ID: 41935 - 從幾時開始: 無限制 - 到幾時結束: 2018-01-17 16:30
| 642 瀏覽
0 喜歡 0 不喜歡
23 回答
[考試] 最新提問 1月 13, 2018 分類:Final examination | 用戶: nat236919 (5.9k 分)
ID: 41926 - 從幾時開始: 無限制 - 到幾時結束: 2018-01-17 16:30
| 812 瀏覽
12,783 問題
183,443 回答
172,219 留言
4,824 用戶