Computer Science, asked by dg6112005678, 7 hours ago

COMPUTER QUESTION NO.
Write a program to calculate the tax on the input salary of an employee using multiple if else

Attachments:

Answers

Answered by jina025
0

Answer:

  1. t8elugymcvkn

Explanation:

cufcpkrlறஙோபஃமெபற ftごglgjg8ylじっひぐvhfjぎちゅっfyfgひぃrlhfhcfgんlぴpstdbn

Answered by ashazaliazhar1010
0

Explanation:

#include<iostream>

using namespace std;

int main()

{

int a, t;

cout<<"enter salary";

cin>>a;

if (a<500000){

cout<<"no tax";

}

else if (a>500000 && a < 1000000){

t = a * (5/100);

cout<<t;

}

else if (a > 1000000 && a < 2500000){

t = a * (10/100);

cout<<t;

}

else if (a > 2500000){

t =a*15/100;

cout<<t;

}

return 0;

}

------------------------------------------------------------------------

hope it helps if any syntax errors I'm sorry becoz I dont have my laptop rn I did this on my mobile

Similar questions