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
When should the register modifier be used? Does it really help?
How do I convert a string to all upper or lower case?
Difference between Shallow copy and Deep copy?
how should functions be apportioned among source files?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
What is c token?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
How many bytes are occupied by near, far and huge pointers (dos)?
What is the description for syntax errors?
What is #include called?
Explain the bubble sort algorithm.
How can I call fortran?
How can you find the day of the week given the date?
Write a progarm to find the length of string using switch case?
Explain how does flowchart help in writing a program?