#P236. 练39.1 书香阁座位
练39.1 书香阁座位
Description
The library of Wind Peak Elementary School has 312 seats in total. The first row has 15 seats, and each subsequent row has 2 more seats than the previous row. How many seats are in the last row? How many rows are there in total?
Write a program to calculate this.
Input Format
None.
Output Format
The second-to-last line should output the number of seats in the last row.
The last line should output the total number of rows.
Sample
NoneNumber of seats in the last row: 37
Number of rows: 12