online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std; int main() { int ter, i = 0 ; int WareType; int WareSold; std:: cout <<"Введіть номер товару:"; std::cin>>WareType; std:: cout <<"Введіть кількість товару:"; std::cin>>WareSold; float WarePrice (0); cout<<"terar"; cin>>ter; do{ switch (WareType) { case 1: { WarePrice = 29.80; std::cout <<"Продано товар №"<< WareType << " в кількості " << WareSold <<" на суму " <<WareSold * WarePrice <<"грн" ; break; } case 2: { WarePrice = 45.50; std::cout <<"Продано товар №"<< WareType << " в кількості " << WareSold <<" на суму " <<WareSold * WarePrice <<"грн"; break; } case 3: { WarePrice = 9.98; std::cout <<"Продано товар №"<< WareType << " в кількості " << WareSold <<" на суму " <<WareSold * WarePrice <<"грн" ; break; } case 4: { WarePrice = 44.90; std::cout <<"Продано товар №"<< WareType << " в кількості " << WareSold <<" на суму " <<WareSold * WarePrice <<"грн" ; break; } case 5: { WarePrice = 67.80; std::cout <<"Продано товар №"<< WareType << " в кількості " << WareSold <<" на суму " <<WareSold * WarePrice <<"грн" ; break; } default : std::cout <<"Ви обрали не існуючий товар"; ter--; } } while(ter > 0); return 4; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue