Horje
random key generator c++ all unique characters Code Example
random key generator c++ all unique characters
#include<iostream>

using namespace std;
int main()
{
   float amount, discount, topaid;
   cout<<"Enter Total Amount: ";
   cin>>amount;
   if(amount<=100)
      cout<<"Amount to be Paid: "<<amount;
   else
   {
      if(amount>100 && amount<=200)
      {
         discount = (amount*5)/100;
         topaid = amount-discount;
      }
      else if(amount>200 && amount<=400)
      {
         discount = (amount*10)/100;
         topaid = amount-discount;
      }
      else if(amount>400 && amount<=800)
      {
         discount = (amount*20)/100;
         topaid = amount-discount;
      }
      else
      {
         discount = (amount*25)/100;
         topaid = amount-discount;
      }
      cout<<"Amount to be Paid: "<<topaid;
   }
   cout<<endl;
   return 0;




Cpp

Related
sort n characters in descending order c++ Code Example sort n characters in descending order c++ Code Example
hackerEarth questions Siemens Code Example hackerEarth questions Siemens Code Example
vector keyword in c++ Code Example vector keyword in c++ Code Example
c code to c++ converter Code Example c code to c++ converter Code Example
Find duplicates in an array geeks for geeks solution in cpp Code Example Find duplicates in an array geeks for geeks solution in cpp Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8