English, asked by likithakompelly, 5 months ago

write a program assign product amount if suppose the offer price is 10% of the product is >7000​

Answers

Answered by shampag1983
0

Answer:

786940869

Explanation:

Answered by dreamrob
0

Program in C++:

#include<iostream>

using namespace std;

int main()

{

double amount , offer_price;

cout<<"Enter the original price of the produce : ";

cin>>amount;

offer_price = amount * (10.0 / 100.0);

cout<<"Offer Price : "<<offer_price<<endl;

if(offer_price > 7000)

{

 cout<<"Offer price is greater than 7000";

}

else

{

 cout<<"Offer price is less than 7000";

}

return 0;

}

Output 1:

Enter the original price of the produce : 5000

Offer Price : 500

Offer price is less than 7000

Output 2:

Enter the original price of the produce : 1000000

Offer Price : 100000

Offer price is greater than 7000

Similar questions