You are on page 1of 1

#include <stdio.

h>

#include <stdlib.h>

/* File created by : Kiprotichwilson25@gmail.com In case you need any clarification on the code*/

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

void test1(){

float price;

float salestax;

printf("Enter the price in dollars: \n");

scanf("%f",&price);

printf("Enter state sales tax(e.g. .06)\n");

scanf("%f",&salestax);

price =price + (price * salestax);

printf("Price with tax is %.2f",price);

int main(int argc, char *argv[]) {

test1();

return 0;

You might also like