```
// i dont know where i am getting wrong..the answer is contniously zero...plz help me
#include<iostream>
#include<cstdlib>
using namespace std;
int rand_val()
{
return rand()%1000000+10000;
}
int main()
{
int i,j;
int salary_vec[100]={};
for( i=0;i<100;i++)
{
salary_vec[j]=rand_val();
}
double tax_vec[100]={};
for( j=0;j<100;j++)
{
if(salary_vec[i]>=70000)
{
tax_vec[j]=salary_vec[i]*(10/100);
}
else if((salary_vec[i]>=50000)&&(salary_vec[i]<70000))
{
tax_vec[j]=salary_vec[i]*(7.5/100);
}
else if((salary_vec[i]>=30000)&&(salary_vec[i]<50000))
{
tax_vec[j]=salary_vec[i]*(5/100);
}
cout<<tax_vec[j]<<endl;
}
return 0;
}
```

0