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 / krishna kanth

include<stdio.h>
main()
{
int income,tax;
printf("enter the income");
scanf("%d",&income);
{
if(income<100000)
{
printf("no tax");
{
else
if(income<=200000)
{
tax=(income-100000)*0.1;
printf("tax is:%d",tax);
}
else
if(income>=200000)
{
tax=((income-100000)*0.2+(income-200000)*0.1);
printf("tax is:%d",tax);
}
}
printf("completed")
}

Is This Answer Correct ?    255 Yes 131 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is .obj file in c?

1046


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1042


Explain the properties of union. What is the size of a union variable

1157


Why isnt there a numbered, multi-level break statement to break out

1020


How old is c programming language?

985


What is the need of structure in c?

1087


Why is c so powerful?

1089


What is strcmp in c?

1072


Who developed c language and when?

1037


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1036


explain what are actual arguments?

1057


What is the advantage of an array over individual variables?

1204


What is the argument of a function in c?

1025


What is the benefit of using const for declaring constants?

1014


What is dynamic dispatch in c++?

1036