0 like 0 dislike
9.3k views
請設計一個程式,使用者輸入一個整數,程式會判斷該數是奇數還是偶數

 

輸入範例1:

10

輸出範例1:

even

輸入範例2:

99

輸出範例2:

odd
[Normal] Coding (C) - asked in 2016-1 程式設計(一)AC by (18k points)
ID: 13023 - Available when: Unlimited - Due to: Unlimited
| 9.3k views

49 Answers

0 like 0 dislike
Hidden content!
#include<stdio.h>

int main ()

{
**** ** *** ** ****** A;
*** * ** ** * *** ** ** ** * * *
*** ** * ** ** * **
* * ****** ** *** * *** ***** **** *** ** * ** ** ** *
* * * ** ***** * *
***** * **** * * *** *
* * * ** **** * * ***** *******
* ** * *** *** **





}
answered by (-82 points)
0 like 0 dislike
Hidden content!
#include *** **

#include ** ** * * ***



int main()

{
* * ** int a;
* ** * * * * ** * * ** * *
* **** * * * *
* * **** * *** * * ****** * * * * **** *
* ***** * * * * else

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

**** **** * return 0;

}
answered by (-158 points)
0 like 0 dislike
Hidden content!
#include ** ** * *

#include * * * ****



void evenodd(int num);



int main(void){
* * * ** * a;
* ***** ** * *** *** **** *** * *


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


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

return 0;

}




* * * * num)

{
***** ** **** * * * ** * % 2 == 0)
* * * *** ** *** ** *** ******** ****** * **
* * * * ********* ** *
* ** ** *** **** *** **** * * ** **

}
answered by (-122 points)
0 like 0 dislike
Hidden content!
#include ** ** *** **
***** ** ** * *** *



int main ()

{
* * * x,j,k,i;
* **** * * * * * *** ** ** ****
** * * (x%2==0)
* * ** * ** *** * * * ** *
*** ** *****
** ** *** * * *** ** *****

}
answered by (-34 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

#include<stdlib.h>

int main()

{
* *** * * ** *** *** x;
*** * ** * ****** *** * * ** ** ** * *** ** **


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


* * *** * * ***** **** *** * ********
***** **** * * * * 0;

}
answered by (-103 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>



int main()

{

   int a;


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


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




**** ** ** *** ** 0;

}
answered by (48 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>



main()

{

   int a;


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


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





   return 0;

}
answered by (48 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>



main()

{

   int a;


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


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





   return 0;

}
answered by (48 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>



main()

{

   int a;


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


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





   return 0;

}
answered by (48 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>



main()

{

   int a;


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

{
* ** * * **** * ** ****
** ** * * ** *
* ** ** * ******* * ** ** ** * ** ** * ** *** * ***
* * * ** ** **** * *
** ** *** * * * * *** * *
**** ** * *** * ** *
* ****** *** ** ** ** ** ****** * * * ** ******* * * * *** * *
** * *** * * ** * *****

}



   return 0;

}
answered by (48 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:104.23.243.109
©2016-2026

Related questions

0 like 0 dislike
35 answers
[Normal] Coding (C) - asked Oct 13, 2016 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
ID: 13422 - Available when: Unlimited - Due to: Unlimited
| 6.5k views
0 like 0 dislike
43 answers
[Normal] Coding (C) - asked Oct 11, 2016 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
ID: 13025 - Available when: Unlimited - Due to: Unlimited
| 8k views
0 like 0 dislike
39 answers
[Normal] Coding (C) - asked Oct 11, 2016 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
ID: 13020 - Available when: Unlimited - Due to: Unlimited
| 7.6k views
1 like 0 dislike
42 answers
[Exercise] Coding (C) - asked Oct 27, 2016 in 2016-1 程式設計(一)AC by Shun-Po (18k points)
ID: 15388 - Available when: 2016-10-27 18:30:00 - Due to: 2016-10-27 21:00:00
| 7.3k views
12,783 questions
183,442 answers
172,219 comments
4,824 users