"The Pacifist" is a science fiction short story by British writer Arthur C. Clarke, first published in 1956 in Fantastic Universe.
By way of revenge, Dr. Milquetoast programs the computer so that it will answer purely theoretical or mathematical questions put to it, but when asked to solve a military problem, responds by insulting the General using phrases industriously prepared by the programmer.
Frustration mounts as the General realizes that because the computer is aware of every known historical military battle, it is capable of recognizing such scenarios even when couched in purely mathematical terms.
Published near the beginning of the Cold War, "The Pacifist" satirizes the military-industrial complex (although the term would not come into wide use for another five years.)
The story's theme of a military computer gone haywire has been used numerous times in written and filmed science fiction.