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
What is pointer & why it is used?
What is 1f in c?
Is that possible to store 32768 in an int data type variable?
What are local static variables?
How is a pointer variable declared?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
What is difference between arrays and pointers?
What is the difference between functions getch() and getche()?
What is call by value in c?
Can we access array using pointer in c language?
What is a node in c?
What is clrscr in c?
Write a program to check prime number in c programming?
How can I sort a linked list?
What is the difference between procedural and declarative language?