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 are the different types of errors?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
Explain the use of 'auto' keyword
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
What is the use of getchar() function?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
What is #line used for?
What is the difference between ++a and a++?
Explain what is dynamic data structure?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
Can we declare variables anywhere in c?
What is the use of putchar function?
I need previous papers of CSC.......plz help out by posting them.......
What is the difference between typedef struct and struct?
Explain the use of function toupper() with and example code?