Classify the following cartridge types by whether they are typically used in a pistol or a rifle: 9mm, .40 S&W, 5.56mm NATO, .45 ACP, 7.62mm NATO, 6.5mm Creedmoor, 6.5mm Grendel,  .357 Magnum

9mm - Pistol
.40 S&W - Pistol
5.56mm NATO - Rifle
.45 ACP - Pistol
7.62mm NATO - Rifle
6.5mm Creedmoor - Rifle
6.5mm Grendel - Rifle
.357 Magnum - Pistol