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 ?    253 Yes 131 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what math functions are available for integers? For floating point?

618


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1123


What is dynamic memory allocation?

812


What are pointers in C? Give an example where to illustrate their significance.

754


Place the #include statement must be written in the program?

576






Can we declare variables anywhere in c?

582


How do we print only part of a string in c?

589


What is a keyword?

749


What is the use of parallelize in spark?

580


Between macros and functions,which is better to use and why?

1572


What is a char c?

596


Is there any possibility to create customized header file with c programming language?

630


What is a wrapper function in c?

592


What is pivot in c?

570


How can I make it pause before closing the program output window?

585