Iron Man was a comic book for years. I don't know if it still is or not. It used to be very popular when I was a kid. *I'm only 45 so it's not like those comic books have crumbled to dust yet...
You mean did the Black Sabbath piece or the comic book come first? The comic book was first by a long shot.
From the Wikipedia:
This article is about the comic book character. For other uses, see Iron Man (disambiguation). I Iron Man (Anthony Edward "Tony" Stark) is a fictional comic book superhero in the Marvel Comics universe. Created by writer-editor Stan Lee, writer Larry Lieber, and artists Don Heck and Jack Kirby, he first appeared in Tales of Suspense #39 (March 1963). (end)