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
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
What are pointers?
Compare interpreters and compilers.
How are structure passing and returning implemented?
What is function pointer c?
Explain union. What are its advantages?
What does int main () mean?
Are there any problems with performing mathematical operations on different variable types?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
Explain setjmp()?
Why is it important to memset a variable, immediately after allocating memory to it ?
How can I make it pause before closing the program output window?
code for find determinent of amatrix
What is the auto keyword good for?
What are high level languages like C and FORTRAN also known as?