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

#include<stdio.h>
#include<conio.h>
void main()
{
float income;
char name;
int no;
float tax;
printf("Enter the name\n");
scanf("%s",name);
printf("Enter the number for more clarification\n");
scanf("%d",&n);
printf("Enter the income\n:);
scanf("%f",&income);
if(income<100000)
tax=0;
else if(income<200000)
tax=(income-200000)*0.1;
else
tax=20000+(income-200000)*0.2;
getch();
}

Is This Answer Correct ?    56 Yes 40 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does %c do in c?

992


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1299


Can you please explain the difference between strcpy() and memcpy() function?

1071


What is an identifier?

1034


What is anagram in c?

924


Why do we need functions in c?

1022


What is structure in c explain with example?

1163


How to declare pointer variables?

1242


Is stack a keyword in c?

1082


what is the height of tree if leaf node is at level 3. please explain

2153


Explain what are multibyte characters?

1194


What do you mean by Recursion Function?

1124


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1105


Can we change the value of static variable in c?

1033


Explain what is the difference between null and nul?

1157