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 / marvin
#include <studio.h>
main()
{
double income, i_t;
int tax;
printf ("
Enter income: ");
scanf ("%lf", &income);
if (income<100000)
tax = 0;
if (income<=200000)
tax = 10;
if (income>200000)
tax = 20;
i_t = income*tax/100;
printf ("
Income Tax = %lf",i_t);
}
| Is This Answer Correct ? | 6 Yes | 11 No |
Post New Answer View All Answers
What is volatile c?
What is difference between arrays and pointers?
What are the two types of functions in c?
Why can’t we compare structures?
How does selection sort work in c?
What is the condition that is applied with ?: Operator?
Explain how does free() know explain how much memory to release?
What is void main ()?
what is a constant pointer in C
How can you determine the maximum value that a numeric variable can hold?
What is nested structure with example?
Write a C program in Fibonacci series.
Why we use void main in c?
What is merge sort in c?
How do I read the arrow keys? What about function keys?