3

^{rd}Intra University Programming Contest, 2012**Problem B**

**Marks Range**

**Problem Statement:**

Asad studies B.Sc. in CSE program at BUBT. Today their programming teacher returns their mid term examination scripts. There are varieties types of numbers that students got in the examination. The teacher wants to find the mark range of numbers (Maximum and Minimum) that students got in the examination. But it is very difficult to find the mark range manually. Teacher gives assignment to write a program that can be used to find the mark range.

**Input:**

The input contains two lines. The first line contains a number

**N**(1<=N<=100) denotes the number of students in the class. The second line contains**N**different positive numbers that denotes the marks students got in the examination.**Output:**

Output contains two lines. The first line contains Lower limit and the second line contains Upper limit of numbers.

**Sample Input/Output:**

Sample Input |
Sample Output |

520 15 5 10 2543 0 27 33 |
Lower Limit: 5Upper Limit: 25Lower Limit: 0Upper Limit: 33 |

**Problem setter:**Mijanur Rahaman, Lecturer, Dept. of CSE

*Bangladesh University of Business and Technology (BUBT)*At First you can try to solve this problem if you can’t than see this code & find what’s your problem . If you copy paste this code you could not improve yourself in programming .