We can't do your homework for you here. That would defeat the point of homework, which is to help you learn, not to help us learn. We can, however, try to guide you the the correct direction.
The programming logic to solve this problem would be to have the 5 inputted numbers stored in variables, then use comparative statements to determine which are larger or smaller than the others. Then, of course, output the largest and smallest.
As for the actual input and output, you need to know how to do that on your own. Your professor wouldn't have assigned this unless you already knew how to do that. If for some reason you don't, arrange to meet with your professor. If you don't learn the basics for yourself, you will go nowhere in programming.
And by the way, "figir" is spelled "figure".