lab3(8)

Run Settings
LanguageC++
Language Version
Run Command
#include<iostream> #include<cmath> using namespace std; int main() { float x; cout << "enter your price" << endl; cin >> x; if(x > 1000){ cout << "your discount - 5 %" << endl; cout << x - x*5/100 << endl; } else{ if(x > 500){ cout << "your discount - 3%" << endl; cout << x - x*3/100 << endl; }else{ cout << "discount = 0%" << endl; } } }
Editor Settings
Theme
Key bindings
Full width
Lines