Friday, 28 August 2020

Can we calculate tax? Yes problem solved!.

Many of them will think that tax (Gst,vat,etc) can be calculated using c programming language???

Yes problem solved!!!

Ok now i will explain  the codings (tax calculation:) 

#include<stdio.h>
#include<conio.h>
void main()
{
int gst=0,total=0,price;
char a[20];
clrscr();
printf("\nGST and VAT Calculation");
printf("\n*******************************\n");
printf("\n Enter the name of Item:");
scanf("%s",&a);
printf("\nEnter the amount to calculate GST");
scanf("%d",&price);
gst=((price/100)*16);
total=price+gst;
printf("\n*********************************\n");
printf("\nItem price GST total");
printf("\n%s    %d     %d   %d\n",a,price,gst,total);
printf("\n*****************************************\n");
printf("\nPrint the Bill\n");
printf("*********************************************");
getch();
}

So i hope you will be satisfied with this program.

please share and increase the views of our blog.

Thank you.

No comments:

Post a Comment

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...