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
Explain what is dynamic data structure?
What is 'bus error'?
What is character constants?
Is c pass by value or reference?
What is c system32 taskhostw exe?
Explain what are the standard predefined macros?
Why c is faster than c++?
What is structure in c language?
What are the 5 types of inheritance in c ++?
How is a null pointer different from a dangling pointer?
Write a program to swap two numbers without using the third variable?
Explain bitwise shift operators?
i got 75% in all semester am i eligible for your company
What is the stack in c?
Differentiate call by value and call by reference?