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
Can i use “int” data type to store the value 32768? Why?
What is the size of structure pointer in c?
What is the use of extern in c?
What are header files why are they important?
What is else if ladder?
What is wrong with this program statement? void = 10;
How many levels of pointers have?
How do I send escape sequences to control a terminal or other device?
What is logical error?
how to find binary of number?
Do you have any idea about the use of "auto" keyword?
What are types of preprocessor in c?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is define directive?
What is the difference between fread and fwrite function?