0 like 0 dislike

13. Please write a program that receives 1, then outputs number 1-9.

Template

#include <stdio.h>
int main(int argc, char *argv[]){
int i;
scanf("%d",&i); // DO NOT CHANGE // No need to use printf("Enter number:")

// your condition starts from here

return 0;
}

Input

1

Acceptable Output1

123456789

Acceptable Output2

1 2 3 4 5 6 7 8 9

 

[Exam] asked in Mid-term examination by (5.9k points)
Available when: Unlimited - Due to: 2017-11-15 16:30
| 237 views

19 Answers

0 like 0 dislike
Hidden content!
* * *** * * *** *
* ** * * ** * * **
i;
*** ** ** * * **** ** // DO * * * // No to * *** * **** ** * *

* * ** *** * **

* 0;
}
1/100 answered by (135 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
0 like 0 dislike
Hidden content!
** *** ** **** * **
* ** **** ***

* i;

* *** * * ******** ** // DO * *** // No * to ** ** **** * ** **

** * * * * *

* i = ** * *****
**** * * *** *** **** ** *
}

* * 0;
}
100/100 answered by (281 points)
0 0
Case 0: Correct output
Case 1: Wrong output
Case 2: Wrong output
0 like 0 dislike
Hidden content!
* * * * ***
int * * * * * ** {
int i;
* ***** ** * ***** *
* i * ** 10 ){
** * ** * * **** **** ** * ** ** * ** *** * * * * i);
*** *** *** i = i+1;
**** ***
}

* * 0;
}
100/100 answered by (227 points)
0 0
Case 0: Correct output
Case 1: Wrong output
Case 2: Wrong output
0 like 0 dislike
Hidden content!
* * * * * * * * *
int ** * * * char *
int i=1;
**** *** ** *
* ** *
* ** * * * ** * * ** **
* ****
}

* ** 0;
}
100/100 answered by (290 points)
0 0
Case 0: Correct output
Case 1: Wrong output
Case 2: Wrong output
0 like 0 dislike
Hidden content!
***** **** *** *
int * * * * ** *
i;

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

* * * * *** * * * = 1; i ** * 10; i *
** **** * * **** *** * * * * **** i);
**** }

** 0;
}
100/100 answered by (271 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Correct output
0 like 0 dislike
Hidden content!
** * * * * **
* * *** * * * * **
* i;
*** *** * ** * *

** == 1){
** * ** *** * ** 9){
* ** *** *** * * * * * * ** * * ** **** i);
** * * * * * **** *** ** i = i + 1;
* ** * * * ** ** }
}

** 0;
}
100/100 answered by (269 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Correct output
0 like 0 dislike
Hidden content!
*** **** *** *****
** ** * *** ** * *

/* * ** ** * * the * ** * * or ** *** * * ** * * * * **** or *** * */

** * * * ** * {
** a;

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

* * * ** *** * ** *** * * a);
}
* * * ** * * 0;
}
100/100 answered by (252 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Correct output
0 like 0 dislike
Hidden content!
** *** * * **
** * *** * *** *

/* run * ** * * the ** ** or add * own * * **** * ** or * * * * */

** ** ** *** {
*** * ***** **
int i;
** **** * *** **** *

* **
** * * *** * ***** ** *** ** *
}
* ** 0;
}
100/100 answered by (268 points)
0 1
Case 0: Correct output
Case 1: Wrong output
Case 2: Wrong output
0 like 0 dislike
Hidden content!
* ** ** *** *
* * *** ***

* * run ** * * * the **** or add * own * * * *** * * or * *** */

** * * *** ** * {
** ** * ** * * i;
* * ** * ****** * ** ** * *
i = 1;
** * ** *** ** *
* * * ** * 0;
}
100/100 answered by (269 points)
0 0
Case 0: Correct output
Case 1: Wrong output
Case 2: Wrong output
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.68.65.198
©2016-2020

Related questions

0 like 0 dislike
18 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
Available when: Unlimited - Due to: 2017-11-15 16:30
| 170 views
0 like 0 dislike
21 answers
[Exam] asked Nov 15, 2017 in Mid-term examination by nat236919 (5.9k points)
Available when: Unlimited - Due to: 2017-11-15 16:10
| 275 views
0 like 0 dislike
22 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
Available when: Unlimited - Due to: 2017-11-15 16:10
| 127 views
0 like 0 dislike
22 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
Available when: Unlimited - Due to: 2017-11-15 16:10
| 98 views
0 like 0 dislike
21 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
Available when: Unlimited - Due to: Unlimited
| 77 views
10,747 questions
120,642 answers
112,784 comments
3,802 users