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

PROGRAMMING:Book sorting

Luz5年前 (2021-05-10)题库449
Write a program, input the name and price of n (n < 10) books from the keyboard and store them in the structure array, sort them according to the unit price from small to large, and output the sorted book information.
Input and output example: description in brackets, no input and output required
###Input example:
```in
three ( n=3)
Programming in C
twenty-one point five
Programming in VB
eighteen point five
Programming in Delphi
twenty
```
###Output example:
```out
Programming in VB 18.5
Programming in Delphi 20.0
Programming in C 21.5
```
```






answer:If there is no answer, please comment