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


Please Help Members By Posting Answers For Below Questions

Explain what is dynamic data structure?

647


What is 'bus error'?

649


What is character constants?

714


Is c pass by value or reference?

595


What is c system32 taskhostw exe?

593






Explain what are the standard predefined macros?

653


Why c is faster than c++?

633


What is structure in c language?

619


What are the 5 types of inheritance in c ++?

586


How is a null pointer different from a dangling pointer?

557


Write a program to swap two numbers without using the third variable?

597


Explain bitwise shift operators?

632


i got 75% in all semester am i eligible for your company

1739


What is the stack in c?

720


Differentiate call by value and call by reference?

569