Toggle navigation
Courses
Questions
Tags
Users
AD practice 2
0
like
0
dislike
1.2k
views
請設計一個程式,使用者輸入一個整數,程式會判斷該數是奇數還是偶數
輸入範例1:
10
輸出範例1:
even
輸入範例2:
99
輸出範例2:
odd
[Normal]
Coding (C)
-
asked
Oct 11, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 13022 -
Available when:
Unlimited
-
Due to:
Unlimited
|
1.2k
views
comment
Please
log in
or
register
to add a comment.
21
Answers
0
like
0
dislike
Hidden content!#include <stdio.h>
#include <stdlib.h>
int main()
{
** * * ** * * * * * n = 0 ;
** * ***** * *** * * ** **** * *
* * * * * ** * * * n % 2 == 0 )
** * ** ** * * * ** * * * ** **** *** ** ** * * ** * * * **
** * *** * * * * * * ** **
* ** * * * *** * * *** ** * * ** * * * * ** * ** * * * * *
** * ** * * ** * * * *** ** * * ** ** * ** * ** * *
* ** * *** * * * * ** * * ** * * * ** * * * * *
* * * * * * * * * ** * * 0;
}
answered
Oct 22, 2016
by
Phoenix666
(
-162
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!#include<stdio.h>
#include<stdlib.h>
int main()
{