The F-35 is the Pentagon's most expensive weapons program at a total estimated cost of nearly $400 billion. The problem was discovered during what the Pentagon called a routine inspection at Edwards Air Force Base, Calif., of an Air Force version of the F-35. Other versions of the F-35 are flown by the Navy and the Marine Corps. All versions were grounded Friday.