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
What is structure padding in c?
When should I declare a function?
Can you subtract pointers from each other? Why would you?
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....
I need a sort of an approximate strcmp routine?
How to establish connection with oracle database software from c language?
What is the use of static variable in c?
What is the significance of scope resolution operator?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
Can a local variable be volatile in c?
When should structures be passed by values or by references?
How do you determine whether to use a stream function or a low-level function?
How to delete a node from linked list w/o using collectons?
Explain what does it mean when a pointer is used in an if statement?
What is the difference between null pointer and wild pointer?