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 is difference between union and structure in c?

1073


What does == mean in texting?

1216


Explain high-order bytes.

1063


What are the rules for identifiers in c?

1032


Explain the meaning of keyword 'extern' in a function declaration.

1117


regarding pointers concept

1981


Why is this loop always executing once?

1002


Do you know null pointer?

978


What is the best organizational structure?

1068


Why void main is used in c?

1003


What does %p mean c?

1019


What is the purpose of ftell?

1036


What is c programing language?

1047


What is the difference between %d and %i?

1046


What is pass by value in c?

1009