Toggle navigation
Courses
Questions
Tags
Users
Coding (Chinese: if/else #4)
3
like
0
dislike
214
views
寫一個程式讀入三個非零整數a,b,c. 如果 f(x)=ax^2+bx+c=0 有重根則輸出0, 有兩相異實根則輸出1, 有兩相異虛根則輸出-1.
Sample Input 1:
1 4 4
Sample Output 1:
0
Sample Input 2:
1 5 6
Sample Output 2:
1
參考書籍:由片語學習C程式設計
chinese
coding
if
else
[Normal]
Coding (C)
-
asked
Feb 5, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21830 -
Available when:
Unlimited
-
Due to:
Unlimited
|
214
views
comment
Please
log in
or
register
to add a comment.
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.70.126.98©2016-2024
Related questions
3
like
0
dislike
0
answers
Coding (Chinese: if/else #8)
[Normal]
Coding (C)
-
asked
Feb 5, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21842 -
Available when:
Unlimited
-
Due to:
Unlimited
|
234
views
chinese
coding
if
else
3
like
0
dislike
0
answers
Coding (Chinese: if/else #7)
[Normal]
Coding (C)
-
asked
Feb 5, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21833 -
Available when:
Unlimited
-
Due to:
Unlimited
|
197
views
chinese
coding
if
else
3
like
0
dislike
0
answers
Coding (Chinese: if/else #6)
[Normal]
Coding (C)
-
asked
Feb 5, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21832 -
Available when:
Unlimited
-
Due to:
Unlimited
|
190
views
chinese
coding
if
else
3
like
0
dislike
0
answers
Coding (Chinese: if/else #5)
[Normal]
Coding (C)
-
asked
Feb 5, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21831 -
Available when:
Unlimited
-
Due to:
Unlimited
|
217
views
chinese
coding
if
else
3
like
0
dislike
1
answer
Coding (Chinese: if/else #3)
[Normal]
Coding (C)
-
asked
Feb 5, 2017
in
Introduction to Computer Programming I (C)
by
The Contributor
(
20.9k
points)
ID: 21829 -
Available when:
Unlimited
-
Due to:
Unlimited
|
319
views
chinese
coding
if
else
12,783
questions
183,443
answers
172,219
comments
4,824
users