C++ Program For Find The Gross Salary Of An Employee Full Project For Beginners

  • Post author:
  • Post category:c++
  • Post comments:0 Comments

 

 

main.cpp

 

 

#include<iostream>
using namespace std;
int main()
{
          /* Program By Ghanendra Yadav
    Visit http://www.programmingwithbasics.com/
    */
  
    float GrossPayment,basic,da,hra,da1,hra1;

    cout<<" Enter basic salary : ";
    cin>>basic;

   
    cout<<" Enter DA : ";
    cin>>da1;

    cout<<" Enter HRA : ";
    cin>>hra1;


    da = (da1 * basic) / 100;
    hra = (hra1 * basic) / 100;

    GrossPayment = basic + da + hra;

    cout<<"\n Gross Salary :"<<GrossPayment<<endl;;
    return (0);

}

Leave a Reply