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
Write program to remove duplicate in an array?
What is struct node in c?
All technical questions
What is pass by reference in c?
how should functions be apportioned among source files?
How can I read data from data files with particular formats?
Do array subscripts always start with zero?
Who invented b language?
What is pass by reference in functions?
write a c program in such a way that if we enter the today date the output should be next day's date.
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
What is a floating point in c?
What is difference between stdio h and conio h?
Differentiate between the = symbol and == symbol?
how to make a scientific calculater ?