Problem when trying to run "find"

I want to delete all .ppm and .png files from the current directory. So, after checking some web pages on the use of the "find" command on the Internet, I entered the command below:

find . -type f  (-iname ".png" -o -iname ".ppm ) -exec rm {} ;

but the terminal just showed a


and did nothing. What was the problem?