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
Explain void pointer?
What are the rules for the identifier?
What is the equivalent code of the following statement in WHILE LOOP format?
What is the need of structure in c?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What oops means?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What will the preprocessor do for a program?
What is the argument of a function in c?
Write a program that accept anumber in words
Can you return null in c?
What is the scope of an external variable in c?
What is a static function in c?
Can we access the array using a pointer in c language?
Why can’t constant values be used to define an array’s initial size?