-->
当前位置:首页 > 题库

PROGRAMMING:Book price summary

Luz5年前 (2021-05-10)题库452
Book price summary
###Input format:
Suppose that the format of book records in a library is "Java programming: 34; Web programming: 56; JSP programming: 20 "(the price of each book is an integer, there is a Chinese character between the price of each book and the name of the next book;).
###Output format:
Write a class method, can accept the keyboard input in line with the above format of the book content string, output the total price of all books in the book record.
###Input example:
```in
Java programming: 34; Web programming: 56; JSP programming: 20
```
###Output example:
```out
Java programming: 34
Web programming: 56
JSP programming: 20
The total price is 110
```







answer:If there is no answer, please comment