0 like 0 dislike
5.6k views
Show more...
[Exercise] Coding (C) - asked in Chapter 9: Functions by (5.2k points)
ID: 34912 - Available when: 2017-12-14 18:00 - Due to: Unlimited

edited by | 5.6k views

46 Answers

0 like 0 dislike
Hidden content!
#include ** * ** * ** *****

int main()
{
* ** * ** * * ** ** i,n;
**** ** * * **** * * * ******* * ** *
* ** ** ** * *** * *** f[40]={0,1};
* * ** *** * *** * * *** (i=2;i<=n;i++)
** **** ** * **** * *** * *** *
* * *** **** ****** * * * * ** * ** *
* * * * * ** ** 0;
}
answered by (-249 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
* ** ** * ** ** * **
int main(void)
{
***** *** ** ********** ** ** * a[999]={0,1},b,c,d;//c=total amount
* * * ** * **** * * ******** **** * * ** * ***** ***
*** * ** ** **** * ** *** * * (d=2;d<999;d++){
* * ** *** ** * *** ***** ** ******** * ** ** * * * * * * * ** ***** *
*** **** * * * ***** ***** * * ** ***** ** *
* ** ** * * **** *** *** * * * ** **** ** *** ** * ("%d",a[c]);
}
answered by (-204 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
* * * ****** * *
int main(void)
{
* * * ** ** *** * **** * a[999]={0,1},b,c,d;//c=total amount
** ** ** * * * * ** * * * *** * * * ** **
* ** * ** ** ** **** ** **** ***** (d=2;d<13;d++){
* * *** * * ** ** ** * ***** *** ** ****** ***** ** * ** * ** ** *** *** **
* * ** * ** **** **** ** ** * * * * * * *****
** * ** ******* * ** ** *** * * **** * * ** ** ("%d",a[c]);
}
answered by (-204 points)
0 0
Case 0: Wrong output
Case 1: Correct output
Case 2: Correct output
Case 3: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main (){
    int a,c;
** **** * * * ** ** * * * *
    if(a!=0){
******* **** * ** * *** ** ****** * *** * * *** b[a];
*** ** *** ** ** ** ** ** * * * * *** *** *
**** * * *** *** ** * * ** * * * ** *** * *** ** *** *
**** ** * * * * *** * **** ** **** * * * *** *
** * * * ** ** * ** * ***** **** *** * **** *** ** **** *** ** * * *** * **
** *** * ** * * * ** * * * * ** * *** *** * *
*** ** ** ** * *** ** *** * *** * *** * ** ** * *
*** * * * * * *** * * ** * ***** * * **** ** *
    return 0;
}
answered by (-498 points)
edited by
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
#include ** * ** * *
#include ** * ** *** * * *

int main()
{
* * * ** i,N;
* * * **** *** ** ** ****** * *
* * ** * a[N];
* ** ** * * ** **
** ****** *
*** * ** * * * * i<=N; i++)
* **** * **
* **** * ** * * * * ** *
** * **** * * ***** ** * * ****
  }
* * * * * * * **** * **  
** ** ** 0;
}
answered by (-108 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
#include ******* **** * **
#include * * * * * ****

int main()
{
** ** * ** i,N;
* ** * ** ** * * * ***** *
** * * ** ** a[N];
**** * *** * *****
* ** * * ** **
*** * * ** i<=N; i++)
** * * *
* * *** * * ***** * * *
* *** ** * *** **** ** ** * **** * ***** *
  }
* * * * *** * * * *  
** ***** * * * 0;
}
answered by (-284 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
#include<stdio.h>
int main()
{
**** *** * * * * * ** * ** ** n;
* *** ** ******* * ** * j;
* *** ** **** ** *** * ** * *** * * * * *
* * ** **** ** * * * c[n];
** **** *** * * ***
** **** *** * **** * ** *
* ********** * * * * **** * ** ***
* * *** * * ** *** * ** ** * printf(" *%d\n",j);
** *** * ** ***** * * * **** * * * ***** * * *
*** * ******* * ** * *** * *** * ** *** ***** *** ** ***** **
    }
* ** **** **** ** * * *** * * * *** ***** ** **
* * ** * * ** * ***** 0;
}
answered by (54 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
#include * **** ** *

int main()
{
* ** *** ** ** * * ** ** * * i = 0;

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

** ** * ** ** * * array[i];

* * *** ***** ***** ** * * j = 0;

* * ** * ** * * *** * * = 0;

****** ** *** * * * * ** = 1;

* *** * * * * ** ** **** ** = 2; j <= i; j++)
* *** ** * ** ***
***** *** *** * ** * ** * *** ***** * * ** * * = array[j - 1] + array[j - 2];
*** **** ** *** *

* ** * *** * * ***** * * * * ** array[i]);

}
answered by (-285 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
0 like 0 dislike
Hidden content!
#include * ***** * **

int maim()
{
*** *** * ***** ** ** ** * * *** * i = 0;

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

** ** ** *** ** *** * array[i];

* * * **** * * * *** ** j = 0;

***** ** * * ** ** * * * = 0;

***** ** * *** * ***** *** **** = 1;

* * * ** ** ** * * * ** ** = 2; j <= i; j++)
* * * ** * * ** * *
* * **** * * ** ** * * **** * * * ***** = array[j - 1] + array[j - 2];
* * ********** *

* * *** *** * *** ** * ** ** * ** ****** **** * array[i]);

}
answered by (-285 points)
0 0
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
0 like 0 dislike
Hidden content!
** ******** ****** * i = 0;

* *** ** * *** *** * * ****** * ** &i);

* * * ****** * * ******* array[i];

* *** * * * ** ***** * * j = 0;

** ****** * * * ****** * **** = 0;

* ** * * *** ** **** ** = 1;

** **** ** ** * = 2; j <= i; j++)
*** * * * * *** **
***** * ***** * * * ** **** ***** ******** = array[j - 1] + array[j - 2];
****** * *** * * **** *

** * ** ** * ** ** ** ** *** ** * array[i]);
answered by (-285 points)
0 0
Show more...
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.131.71
©2016-2025

Related questions

0 like 0 dislike
41 answers
[Exercise] Coding (C) - asked Dec 14, 2017 in Chapter 9: Functions by semicolon (5.2k points)
ID: 37370 - Available when: 2017-12-14 18:00 - Due to: Unlimited
| 4.6k views
0 like 0 dislike
93 answers
[Exercise] Coding (C) - asked Nov 2, 2017 in Chapter 6: Loops by semicolon (5.2k points)
ID: 29830 - Available when: 2017-11-02 18:00 - Due to: Unlimited
| 9k views
0 like 0 dislike
55 answers
[Exercise] Coding (C) - asked Nov 29, 2017 in Chapter 8: Arrays by semicolon (5.2k points)
ID: 34968 - Available when: 2017-11-30 18:00 - Due to: Unlimited
| 7k views
0 like 0 dislike
56 answers
[Exercise] Coding (C) - asked Nov 29, 2017 in Chapter 8: Arrays by semicolon (5.2k points)
ID: 34913 - Available when: 2017-11-30 18:00 - Due to: Unlimited
| 6.5k views
0 like 0 dislike
47 answers
[Exercise] Coding (C) - asked Dec 7, 2017 in Chapter 9: Functions by semicolon (5.2k points)
ID: 35785 - Available when: 2017-12-07 18:00 - Due to: Unlimited
| 4.9k views
12,783 questions
183,442 answers
172,219 comments
4,824 users