How To Calculate GST% By Using C

To Calculate GST% by Using  C .  Here are  really simple coding of C.

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main ()
{
float original_cost,GST,Netprice,GST_Amount;
clrscr();
printf(“Calculate the GST on your product\n”);
printf(“Enter Original cost of your product\n”);
scanf(“%f”,&original_cost);
printf(“Enter the Percent of GST on that product\n”);
scanf(“%f”,&GST);
GST_Amount=(original_cost*GST)/100;
Netprice=original_cost+GST_Amount;
printf(“Your Netprice=%f”,Netprice);
getch();
}

After Running Program 🙂

 

 

Leave a Reply