2 like 0 dislike
寫一個程式讀入四個正整數a,b,c,d 並且保證點(a,b)及(c,d)為不同點。如果連接點(a,b)及(c,d)的直線通過原點則輸出1, 其他狀況輸出0。

 Sample Input:

1   1   2   2

Sample Output:

1

參考書籍:由片語學習C程式設計
[Normal] Coding (C) - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21773 - Available when: Unlimited - Due to: Unlimited

edited by | 62 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:3.239.58.199
©2016-2021

Related questions

2 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21777 - Available when: Unlimited - Due to: Unlimited
| 59 views
2 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21776 - Available when: 1899-12-31 00:00:00 - Due to: Unlimited
| 65 views
2 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21775 - Available when: Unlimited - Due to: Unlimited
| 62 views
2 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21774 - Available when: Unlimited - Due to: Unlimited
| 83 views
2 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21772 - Available when: Unlimited - Due to: Unlimited
| 65 views
12,102 questions
157,995 answers
158,423 comments
4,502 users