hi:p plz tell me how to make a function of name salaryIncrement for ten people displaying their old salary( input from user ) and their new salary with the increament of( 15% ) in their old salary.plz tell me
Hi Try This I hope That Is Enough For You; HTML: #include<iostream> #include<conio.h> using namespace std ; float salaryIncrement() { float sal[10]; for (int i=0 ; i<10 ; i++){ cout<<"Please Enter The : "<<i+1<<"th "<<"person\n"; cin>>sal[i]; } cout<<"The Old Salary"<<" "<<"The Increment of 15%\n"; for (int i=0 ; i<10 ; i++ ) { cout<<sal[i]<<" "<<(sal[i]*15/100)+sal[i]<<endl; } } int main() { salaryIncrement(); getche(); return 0 ; }