Code for Program to compute total cost including different taxes in C Programming
#include<stdio.h>
void main()
{
float number1,number2;
printf("Enter the cost =>");
if(scanf("%f",&number1)==1)
{
number2=number1+(number1*0.15)+(number1*0.10)+(number1*0.05)+(number1*0.01);
printf("Total cost Rs.%11.2f",number2);
}
else
{
printf("Error,try again");
}
}
===============================OUTPUT=================================
Enter the cost =>1232
Total cost Rs. 1613.92