2 like 0 dislike
寫一個程式讀入四個整數a,b,c,d並且保證c>a且d>b。計算以(a,b)為左下角,(c,d)為右上角的長方形面積及周長。

 

Sample Input:

1  2  7  6

Sample Output:

24

20

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

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

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
| 97 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
| 97 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
| 109 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: 21773 - Available when: Unlimited - Due to: Unlimited
| 123 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
| 119 views
13,482 questions
204,493 answers
183,719 comments
4,999 users