#include <stdio.h>
#include <stdlib.h>

int main()
{
    float item1, item2, item3;
    float tax, subtotal, total;
    
    printf("Enter the items:");
    scanf("%f %f %f", &item1, &item2, &item3);
    
    tax = 0.05;
    
    subtotal = item1+item2+item3;
    total = subtotal*(1+tax);
    
    
    //use the 10 in %10.2f to line the numbers up
    //use the 2 in %10.2f to specify how many decimels should be printed
    printf("Item 1\t\t %10.2f\n", item1);
    printf("Item 2\t\t %10.2f\n", item2);
    printf("Item 3\t\t %10.2f\n", item3);
    printf("subtotal\t %10.2f\n", subtotal);
    printf("tax\t\t %10.2f\n", tax);
    printf("total\t\t %10.2f\n", total);
    system("pause");
}