Thursday, August 30, 2018

7. WAP to calculate whether customer will get discount or not (customer will get discount only if total bill amount is greater than Rs. 100).

#include<stdio.h>
#include<conio.h>
void main()
{
   float amt;
   printf("Please enter total bill amount: ");
   scanf("%f",&amt);
   if(amt>100)
   {
    printf("\nDiscount is applicable.");
   }
   else
   {
    printf("\nDiscount is not applicable.");
   }
   getch();
}


OUTPUT:





Please have a look at the below video lesson posted on my YouTube channel:






No comments:

Post a Comment