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 && income>=100000)
tax = 10;
if (income>=200000)
tax = 20;
i_t = income*tax/100;
printf ("
Income Tax = %lf",i_t);
}
| Is This Answer Correct ? | 27 Yes | 18 No |
Post New Answer View All Answers
How do you generate random numbers in C?
Explain bitwise shift operators?
Is fortran still used in 2018?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Explain what are the different file extensions involved when programming in c?
What are the header files used in c language?
What are the types of bitwise operator?
What are the standard predefined macros?
How are portions of a program disabled in demo versions?
What is the use of clrscr?
How to write a code for reverse of string without using string functions?
What does %2f mean in c?
How can you increase the allowable number of simultaneously open files?
Why is C language being considered a middle level language?
What is the use of define in c?