I am new to C I am trying to do 2 functions. I want a user to enter a price and then my main function send my total cost that calculates sales tax and then have my main function call a function that will display the sales tax due and total cost. I have revised my code and now i am getting an error that says expected primary expression before float. I tried looking it up but still cant understand. here is my code.

Code:
#include <stdio.h>
float askprice();
float addtax();
void printtotal(float total);

int main()

{

float price;
float tax;
float total;

price = askprice();
tax = addtax();



 total= (price * tax);












return 0;  }
  float askprice()



{float price;
printf("Please enter a price");
scanf("%f",&price);

return price;

}


float   addtax(float tax,float price)


 { float total;
 total= price*tax
 return total;

}

  void printtotal(float total)
 { 
    printf("\n The total is %f",total);
 }