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 structure padding in c?

1064


When should I declare a function?

1063


Can you subtract pointers from each other? Why would you?

921


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1921


I need a sort of an approximate strcmp routine?

990


How to establish connection with oracle database software from c language?

2145


What is the use of static variable in c?

1048


What is the significance of scope resolution operator?

1353


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3632


Can a local variable be volatile in c?

942


When should structures be passed by values or by references?

998


How do you determine whether to use a stream function or a low-level function?

1084


How to delete a node from linked list w/o using collectons?

2727


Explain what does it mean when a pointer is used in an if statement?

1006


What is the difference between null pointer and wild pointer?

1139