Toggle navigation
Courses
Questions
Tags
Users
Coding (Chinese: if/else #3)
3
like
0
dislike
318
views
寫一個程式讀入四個整數a,b,c,d. 計算以(a,b)及(c,d)為兩對角頂點的長方形面積. 若(a,b)及(c,d)是水平或是垂直物共線則面積為0.
Sample Input:
-1 5 6 -3
Sample Output:
56
參考書籍:由片語學習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: 21829 -
Available when:
Unlimited
-
Due to:
Unlimited
|
318
views
comment
Please
log in
or
register
to add a comment.
1
Answer
0
like
0
dislike
Hidden content!#include <stdio.h>
#include <stdlib.h>
int main()
{