Toggle navigation
Courses
Questions
Tags
Users
AD 20161201 第二次期中考 第二題
0
like
0
dislike
4.5k
views
時鐘上有時針有分針,分針每一分鐘跳一次,分針每跳一次時針也會前進相對應的角度。請設計一程式,由使用者輸入一個時間,程式會計算出時針與分針間的夾角後輸出。
輸入說明:輸入包含兩個正整數,兩個數之間由一個空白隔開,第一個數字代表時,第二個數字代表分。
輸出說明:請輸出時針與分針間較小的那個夾角。
輸入範例:
12 31
輸出範例
170.5
[Exercise]
Coding (C)
-
asked
Dec 1, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 18068 -
Available when:
2016-12-01 18:30:00
-
Due to:
2016-12-01 21:00:00
reshown
Dec 1, 2016
by
Shun-Po
|
4.5k
views
comment
Please
log in
or
register
to add a comment.
67
Answers
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
** ***** * * ** x, y;
** *** ***** **** l,m,n,ang;
* * * * * * ****** *** * * * * * ** *
* ** ** *** * * **
*** ********** ** *
* * * **** *
** ** ** * **** * * *
}
* ***** * *** **
** *** * * ****** * *
*** * * * * * *** **
*** **** * *** ** * * * * *
** ****** **** ****** *****
* ** ** * * * *** * **
* ** ** * * * * *** ****
* ** * * ** * * 0;
}
answered
Dec 1, 2016
by
410223039
(
-146
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
** ****** * * **
* ** * * ** * ** *
***
**
** *
* * * c , d , e , ***
* * * **** *** * **** *****
** = ***
* ***
{
*** * * **** ** *** ** * * ****** ** **** ** * * ****** ****
}
= * * a + **
= 6 * *
******* *
* = d - *
* * * *
* = e - *
* * *** * , *** *
* ** * *** ** ** ** *
****** *
answered
Dec 1, 2016
by
410223045
(
-194
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
** ** * *** * * * * *
* * ** * ** * *
* * ***** * ** *
int main()
{
* ** * ** * * * a,b;
**** * * ** * c , d , e , arc;
** * ** * *
** * * * * * ***** *** *
***** * * * * * ******* * *** ** &a , &b);
** ** * ***
* * ******* * *
* * ** * * * *
** ** *** **** * ****
** ** * **
***** * * *
* * ** * *** *
* * *** ** *****
* *** * * * ** * * * *
** * * * * * **
*** ** ** * * *
* * *** * * ** ** * **
* *** * * * * * ****
else
* **** * * * **
* ** ** * * **
* ** * **** ** * * * ** *** *
* ** * ** ** * * * * ** ** * , arc);
* * * * * * *** ** **** *
* * ** *
return 0;
* * ** * * *** * *** * * *
}
answered
Dec 1, 2016
by
410223055
(
-186
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
*** * * * *** * ** * * * a,b,c1,c2;
* **** **** ** * * ** * * x,y;
* * *** ***** *** %f",&a,&b);
*** * * * * * ** *** * *
*** ** * * * * *** *
* *** * * ** * * * *** ** *
* *** **** ** * ** *** ** * *
** ******* * * *** ** ***
***** * * ******* * * **
* * * **** * ** * * *
*** * * * *** * * ************
*** *** * * **** * *
* * * * * ** * ** * ** ***
* ** **** * * * *** **
**** ** ** * ** *** **** ** ***
* * * * * * ***** * ** * ***** * * *** ***
* * ** * ******* * * ** * ***
*** ** * * * ********* **** * * *****
** ** ** * *** * *** **** ** ** *** * *
** ***** *** ** * * *** ** **
** ** **** * ******* * ** * * 0;
}
answered
Dec 1, 2016
by
410214219
(
-284
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
*** * *** ** * * *** *** a,b,c1,c2;
* * **** *** **** ** x,y;
* * * **** * ** ** * %f",&a,&b);
***** **** * ** *** * *** *
**** * ** * * ** * *
** ** * ** * *** *** * *
** * * ** *** *** ** ******** * *
* * ***** ******* ** *
* * * * * * * * **** ** **
***** ***** * ***** * **
* ** * *** **** ***
* * * * * * ** * ** *
* * *** * ****** ** *
* **** ** ** * ** * * *****
* ** * ** * * * *** ***** ***
* ** **** * *** * *** * *** *** ** ****
** ** * ***** ** *** *** * **
***** * *** * * * * ** * * * * ***** *
**** * * * ** *** **** * *** * *** *
*** ** * ** *** * ** * ******** **** * * * * *
* * ** * ** * * ** 0;
}
answered
Dec 1, 2016
by
410214219
(
-284
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include ********* * ** **
#include * * *** * **
int main()
{
* * * *** * * * ** clock24 = 0, min = 0, clock12 = 0, clockp = 0, minp = 0, ang = 0;
* * *** * * ***** *** *** * * *** ** * *** *
* * ** * *** * *** **** * ******** ** * &min);
* * * *** * ** * * (clock24 >= 12)
**** ** **** * * *** **
* * ** ** * *** * * * **** **** ** ** * = clock24 - 12;
* * *** ** ***** *** * *
*** ** ** * ***
** * * * *** ** ** *
** * *** * * ** ** * *** * ** * **** * *** * *** * * = clock24;
*** *** ** ****** ** ***
** * *** *** * ** * * ** * = ((clock12 * 30) + (min * 0.5));
**** * * **** = (min * 6);
* * *** * ** * * = clockp - minp;
* ** ** * * * ***** (ang < 0)
* * * ***** *****
* * * *** ***** ** ** ** **** ** * = -ang;
** * *** * ** *** * *
* * * * *** * * **** (ang > 180)
****** * * *****
* ** * * ** ******* * **** * * * * * * * ** * = 360 - ang;
* *** ** ** **** ** * *
** ** *** ***** * ***** ** ** ang);
* ** * * * * ***** 0;
}
answered
Dec 1, 2016
by
410314217
(
-214
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
** * * ** ** * * * *** a,b,c1,c2;
* * ** *** * * * ****** * * x,y;
* **** * * * * ** ** * ** * %f",&a,&b);
** ** * * * * **** * ** * *
** * * * ** * ********* ** * *
** **** ** ** * ** * **
* ** ** * * ** * * *** * **** *
** ********** * ** * *
*** * *** ** * * * *** *
* * * ** * * * ** *
*** ** * *** * * ** ** ** *
*** * **** **** **
* *** ** * * ** ** * ***
* ** * * *** *
**** ** ** ** * * * * ****
* * * * * * * ** ** * * * * * *
** ** * * * ** * * * * ****
*** *** * ** * ** ** * * * *** ****** * ****
** * ** * * ** * * *** * * *
** * ***** * ** * * * * ****
* * ** * ***** * *** * 0;
}
answered
Dec 1, 2016
by
410214219
(
-284
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
* * * *** * * * * ** * * ** a,b,c1,c2;
**** * * * ** * ** x,y;
*** ** * *** ********* * * %f",&a,&b);
* * * * * **** ** * ** *** * **
* * ** * ** ******* * *
**** * ** * ** ** ** **
** * *** ** *** * * ** ** ***** ***
* * ** * * ** ** ** *
* ** ** * *** * ** * * *** *
** *** *** * * * **** **
* **** * * *** * * *
* * ** * ** * **** ** * * * **
* *** * ** * ** ***
******* *** * ** ******
* ** ***** ** * ******* *** * * **
** ** * * * * * ** * ** * * * **** *
* ** ** *** ** * * ** **
** * * ** * ***** *** * * * * * * ** *
* * * ****** *** * * * ** **** ** *
* ******** **** * * * * * * * *
* * * ******** * ** ** 0;
}
answered
Dec 1, 2016
by
410214219
(
-284
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
* ** ** * *** * ** * a,b,c1,c2;
* * *** *** ** * ** x,y;
* * * * ** * * *** * ** * ** ** %f",&a,&b);
** *** * ** ***** * * *
*** *** * **** **
* * ** * * ** * **
* * * * * ** ****** **** ** * ** *
* ** ***** ****** * ** * ** **
****** ** ** *** *** ****
* *** ****** * *
*** * ***** * ** * *
*** **** ** * *** *** ** ** *
* * * * ** * * *
* ** * *
*** ** * * ** ** * ** **
** * * * *** ** ** *** ***** *** * *** * *
***** ** ** * * * ** ***** **********
**** * **** * * * *** ** * * ****
** * * * ** * **** * ** ** * * * ** *
* * ** ******** * * * * ** ** **
** * ***** * *** * ** * ****** 0;
}
answered
Dec 1, 2016
by
410214219
(
-284
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
*** * * * *** ** * ** * ** a,b,c1,c2;
*** ** * ** **** * * ** x,y;
** * * * * * ** ***** * ****** %f",&a,&b);
* * * * **** ** * *** * **
* ** * * * *** *
*** * *** ** ** * *
* **** * * ** * ** * *
* * * * * * * * ** * **
*** * * * * *** *** **
* ***** ** ** ** *** ** ***
** ****** ** * ** ** * ** * **
*** * * ***** ** ** *** ** * *
* * *** ****** * * * ** ** *
* * ** * ** * *
** * ***** *** * ****** *** ** **** *
******** ****** * ** *** *** * * * * * * *
** ** *** * * *** ** *** **
* * * **** ** ** * * ** * *** ***
* * ** * * ****** ** * * * ** *
*** * * **** ***** * ** * *** ** *
****** ** * * * * ** * * * * 0;
}
answered
Dec 1, 2016
by
410214219
(
-284
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Page:
« prev
1
2
3
4
5
6
7
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.70.126.212
©2016-2025
Related questions
0
like
0
dislike
5
answers
AD 20161201 第二次期中考 第五題
[Exercise]
Coding (C)
-
asked
Dec 1, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 18074 -
Available when:
2016-12-01 18:30:00
-
Due to:
2016-12-01 21:00:00
|
926
views
0
like
0
dislike
96
answers
AD 20161201第二次期中考 第四題
[Exercise]
Coding (C)
-
asked
Dec 1, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 18072 -
Available when:
Unlimited
-
Due to:
Unlimited
|
5.9k
views
0
like
0
dislike
13
answers
AD 20161201 第二次期中考 第三題
[Exercise]
Coding (C)
-
asked
Dec 1, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 18069 -
Available when:
2016-12-01 18:30:00
-
Due to:
2016-12-01 21:00:00
|
1.4k
views
0
like
0
dislike
11
answers
AD 20161201 第二次期中考 第一題
[Exercise]
Coding (C)
-
asked
Dec 1, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 18065 -
Available when:
2016-12-01 18:30:00
-
Due to:
2016-12-01 21:00:00
|
1.4k
views
0
like
0
dislike
0
answers
AD 20161201 第二次期中考公告
[Resource]
asked
Dec 1, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 18084 -
Available when:
Unlimited
-
Due to:
Unlimited
|
7
views
12,783
questions
183,442
answers
172,219
comments
4,824
users