Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab3(8)

Snippet info

Language

Cpp

Visibility

public

Author

andrusus.korotkovus

Created

2018-10-09T05:50:31Z

Updated

2018-10-09T05:54:58Z

#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;
        }
    }
        
}
INFO