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
What is difference between union and structure in c?
What does == mean in texting?
Explain high-order bytes.
What are the rules for identifiers in c?
Explain the meaning of keyword 'extern' in a function declaration.
regarding pointers concept
Why is this loop always executing once?
Do you know null pointer?
What is the best organizational structure?
Why void main is used in c?
What does %p mean c?
What is the purpose of ftell?
What is c programing language?
What is the difference between %d and %i?
What is pass by value in c?