answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

void tax caluclation()

{

char name[20];

double sal,tax;

clrscr();

printf("enter the name of the person:\n");

scanf("%s",name);

printf("enter the name of the person:\n");

scanf("%lf",sal);

if(sal<=75000)

tax=sal*12.0/100;

else

tax=sal*16.0/100;

printf("the tax amount for %s is:%lf\n",name,tax);

}

void main()

{

tax caluclation();

}

no space b/w (tax caluclation) taxcaluclation

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

Reference:cprogramming-bd.com/c_page1.aspx# calculator

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you Write a C program for performing as calculator?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write c program of menu driven by calculator?

dcdfsadf


How do you write a c program to design calculator using loop?

Wr


What are the Example Output of Calculator Program in C plus plus?

example output of c++ calculator


Write C program using functions to simulate a Calculator with the basic functions - square root and reciprocal?

trytytytytytytytytrf 6 bcvvtgujhy6


Write a c program for creating a virus?

a c program for creat a virus


Where do we write main function in a c program?

Into the source program.


Write a c program to find Volume and surface area of cube?

Write a c program to compute the surface area and volume of a cube


How do you write a c program to analysis a circuit?

There is no need to write a C program for circuit analysis; there are lots of packages out there that already do that (for example, Spice).


How do you write a C program to check whether the number is odd or even Ps-using DEV complier?

To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.


How do you write socket program in c?

For first find an example program.


How do you write a program in embedded c?

Use a text-editor program.


What is the program to write route cipher?

c#