This is what I tried but I cant display it, here is my code and I can compile and run it but when I select the display the error shows.
Here are my errors