Gross Salary Computation


#include<iostream.h>
#include<conio.h>

void main()
{
    int basic;
    float da, hra, gross;
    clrscr();

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

    da = 0.4 * basic;
    hra = 0.2 * basic;
    gross = basic + da + hra;

    cout<<"\nDA:"<<da<<"\nHRA:"<<hra<<"\nGROSS:"<<gross;
}
Previous Post Next Post