bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

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 }
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror