Toggle navigation
Courses
Questions
Tags
Users
第一次期中考_Question3
6
like
0
dislike
745
views
直線方程式的通式為 ax+by+c=0 ,請設計一程式,由使用者輸入平面上兩個點的座標,程式會找到直線方程式。
輸入說明:
會連續輸入四個浮點數,兩兩間以空白隔開,分別代表第一個點的x座標,第一個點的y座標,第二個點的x座標以及第二個點的y座標。
輸出說明:
請在一行輸出a,b,c三個數,用空白隔開他們。請將a約分到1,如果a是0,請將b約分到1。
輸入範例:
0.0 0.0 5.78 5.78
輸出範例:
1 -1 0
midterm
[Exam]
asked
Oct 27, 2017
in
2017-1 程式設計(一)AD
by
楊修俊
(
30k
points)
ID: 29384 -
Available when:
Unlimited
-
Due to:
2017-10-27 21:30
|
745
views
comment
Please
log in
or
register
to add a comment.
14
Answers
0
like
0
dislike
Hidden content! * * * * * * ** * * **** * * ** **** * *** ** *
80/100
answered
Oct 27, 2017
by
Karmowy
(
160
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content! ** * * *** * * *** ***** * ** * *** * *
20/100
answered
Oct 27, 2017
by
pohyuhang
(
190
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content! ** * ** ** ** *** * * * *** ** * ** ** * ** * **
80/100
answered
Oct 27, 2017
by
0TXT
(
215
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!** * * *** * * * * *** *** * ** * * *** * *
50/100
answered
Oct 27, 2017
by
zxcv1025
(
196
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!** * * * ** * * ** * * * * * * * * ** ***
100/100
answered
Oct 27, 2017
by
s410535044
(
114
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!* * * * ** ** * ** * * * * * * ****
100/100
answered
Oct 27, 2017
by
0.0
(
224
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content! * * * * * * * * ** * * *** ** * * * * *** *
100/100
answered
Oct 27, 2017
by
黃建淳
(
209
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content! * * *** ** ** ** * * ** * ** * *** * *** **
20/100
answered
Oct 27, 2017
by
410536051
(
194
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!#include<stdio.h>
int main ()
{