bsc

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

P007.c (615B)


      1 /*
      2  * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025
      3  * Repo: https://github.com/notamitgamer/bsc
      4  * License: MIT
      5  */
      6 
      7 /* A shopkeeper offers 10% discount on printed
      8 price of a digital camera. However a customer has
      9 to pay 6% GST on the remaining amount. WAP to
     10 calculate and display the amount to paid by the
     11 customer, taking the printed price as input. */
     12 
     13 #include<stdio.h>
     14 int main() {
     15 	double mrp, final_price, temp;
     16 	printf("Enter the printed price : ");
     17 	scanf("%lf", &mrp);
     18 	temp = mrp * 0.90;
     19 	final_price = temp * 1.06;
     20 	printf("\nCustomer have to pay : %lf", final_price);
     21 	return 0;
     22 }
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror