Remember to checkout the Codesnip below to review the C++ code yourself! Feel free to copy the code, but I ask that you please provide credit if you leave the code unchanged when you use it.
//Program: Nazmus //Program: Shirt Count //Website: EasyProgramming.net #include <iostream> using namespace std; void main() { int shirts; float dollar; cout << "Please enter number of shirts: "; cin >> shirts; if(shirts <= 5) dollar = shirts * 10; else dollar = shirts * 8; cout << shirts << " will cost you $" << dollar << '.' << endl; system("pause"); }