write a c program to calculate the income tax of the
employees in an organization where the conditions are given as.
(I.T. = 0 if income <100000
I.T = 10% if income _< 200000
it = 20% if income >_ 200000)
Answer Posted / krishna kanth
include<stdio.h>
main()
{
int income,tax;
printf("enter the income");
scanf("%d",&income);
{
if(income<100000)
{
printf("no tax");
{
else
if(income<=200000)
{
tax=(income-100000)*0.1;
printf("tax is:%d",tax);
}
else
if(income>=200000)
{
tax=((income-100000)*0.2+(income-200000)*0.1);
printf("tax is:%d",tax);
}
}
printf("completed")
}
| Is This Answer Correct ? | 255 Yes | 131 No |
Post New Answer View All Answers
What is .obj file in c?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Explain the properties of union. What is the size of a union variable
Why isnt there a numbered, multi-level break statement to break out
How old is c programming language?
What is the need of structure in c?
Why is c so powerful?
What is strcmp in c?
Who developed c language and when?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
explain what are actual arguments?
What is the advantage of an array over individual variables?
What is the argument of a function in c?
What is the benefit of using const for declaring constants?
What is dynamic dispatch in c++?