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
Explain what math functions are available for integers? For floating point?
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
What is dynamic memory allocation?
What are pointers in C? Give an example where to illustrate their significance.
Place the #include statement must be written in the program?
Can we declare variables anywhere in c?
How do we print only part of a string in c?
What is a keyword?
What is the use of parallelize in spark?
Between macros and functions,which is better to use and why?
What is a char c?
Is there any possibility to create customized header file with c programming language?
What is a wrapper function in c?
What is pivot in c?
How can I make it pause before closing the program output window?