Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How do you generate random numbers in C?

1198


Explain bitwise shift operators?

1251


Is fortran still used in 2018?

1040


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?

1263


Explain what are the different file extensions involved when programming in c?

1110


What are the header files used in c language?

1055


What are the types of bitwise operator?

1113


What are the standard predefined macros?

1146


How are portions of a program disabled in demo versions?

1296


What is the use of clrscr?

1105


How to write a code for reverse of string without using string functions?

2147


What does %2f mean in c?

1226


How can you increase the allowable number of simultaneously open files?

1160


Why is C language being considered a middle level language?

1130


What is the use of define in c?

1064