A shop will give discount of 10% if the cost of purchased quantity is more than 1000.
Ask user for quantity. And calculate total amount including discount
Answers
Answered by
0
Answer:
snsndlsjsksbdjdbsjdjskbdksvsjd
Answered by
1
Answer:
Explanation:
In C++, to do so
(im writing the main code only!)
int main(){
int valueasked, discount, finaldisc;
cout<<"What is the cost of items you purchase?\n";
cin>>valueasked;
if(valueasked > 1000){
discount = valueasked * (10/100)
finaldisc = valueasked - discount
}
else{
cout<<"No discount for you":
}
}
Pls mark this as brainliest!
For more help contact me on my insta: @itz_parv.j
Similar questions