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

PROGRAMMING:Find the books with the highest price and the lowest price

Luz5年前 (2021-05-10)题库496
Write a program to input the name and price of n (n < 10) books from the keyboard and store them in the structure array to find and output the name and price of the books with the highest and lowest price.
Output format statement:
printf("highest price: %.1f, %s\n", );
printf("lowest price: %.1f, %s\n",);
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-five
```
###Output example:
```out
highest price: 25.0, Programming in Delphi
lowest price: 18.5, Programming in VB
```






answer:If there is no answer, please comment