Computer Science, asked by haniya8003, 4 months ago

Program to input cost of and purchase quantity from user given that also will give discount of 10% if the cost purchased quantity is more than 1000 also display and content total cost

Answers

Answered by sarfarazkhan445
0

Answer:

hmtmrumunhdndhnhdnhdndgmhmfbmbdmhhggghdhdddg

Answered by KishanKumar0001
0

Answer:

#include <stdio.h>

int main(){

int cost,amt,total;

printf("Enter The Cost Of the Product : \t");

scanf("%d",&cost);

printf("Enter The Amount You Purchased : \t");

scanf("%d",&amt);

total = amt*cost;

if(total>1000){

total *=0.9;

printf("Total Cost Is : %d", total);

}

else{

printf("Total Cost Is : %d",total);

}

}

Similar questions