回分類題庫
d290: 105OOP Lab Exercise: Template
出處:

Difficulity : N/A
Accepted : 52 Times | Submit :71 Times | Clicks : 439
Accepted : 50 Users | Submit : 51 Users | Accepted rate : 98%
Time Limit :10000 ms | Memory Limit : 64000 KBytes
題目加入時間 : 2016-12-02 01:43

Content :

Please implement function template for this case.

Input :

There are three type that you can input:

1.     integer

2.     float

3.     char

After you input the type name, you should input two numbers or characters for your test.

Output :

You should print “Mean:” after you input your tests.

And then output your result.

 

Mean: (a + b) / 2 

Sample Input :

int 6 8
float 3.2 6.3
char a c
int 5 8
char a d
-1

Sample Output :

Mean: 7
Mean: 4.75
Mean: b
Mean: 6
Mean: b

Hint :


  

Author :

(管理員:oopTA)

  Solve it!   Status Forum (0)

C++
C
JAVA
76647. oop_100703015 (4 ms , 508KB)
76605. oop104703052 (4 ms , 510KB)
76486. oop102703046 (4 ms , 498KB)
76465. oop104703004 (4 ms , 512KB)
76672. oop104703024 (6 ms , 504KB)
沒有解題記錄 沒有解題記錄

執行時間會受很多因素影響因此僅供參考,主機等級請看這裡