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 / 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


Please Help Members By Posting Answers For Below Questions

What is pointer & why it is used?

1063


What is 1f in c?

2573


Is that possible to store 32768 in an int data type variable?

1038


What are local static variables?

1084


How is a pointer variable declared?

1027


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.

1951


What is difference between arrays and pointers?

1017


What is the difference between functions getch() and getche()?

1040


What is call by value in c?

958


Can we access array using pointer in c language?

1044


What is a node in c?

922


What is clrscr in c?

1079


Write a program to check prime number in c programming?

1031


How can I sort a linked list?

978


What is the difference between procedural and declarative language?

1098