bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / semester_1 / tuition-c / P007.c

P007.c (478B)


      1 /* A shopkeeper offers 10% discount on printed
      2 price of a digital camera. However a customer has
      3 to pay 6% GST on the remaining amount. WAP to
      4 calculate and display the amount to paid by the
      5 customer, taking the printed price as input. */
      6 
      7 #include<stdio.h>
      8 int main() {
      9 	double mrp, final_price, temp;
     10 	printf("Enter the printed price : ");
     11 	scanf("%lf", &mrp);
     12 	temp = mrp * 0.90;
     13 	final_price = temp * 1.06;
     14 	printf("\nCustomer have to pay : %lf", final_price);
     15 	return 0;
     16 }