Question
September 8, 2009 at 01:44 PM
anwizzel

Miracle C

by anwizzel . Updated 17 years ago

Currently attending UOP and in a programming concepts class. Recently I ran this code in my C complier

#include

int main()
{

printf(“\tSale basis for tax calculation: $125.00\n”);

printf(“\tStore Location Tax Rate Tax Amount\n”);
printf(“\t================= ========= ============\n”);
printf(“\tDel Mar 7.25% $9.06\n”);
printf(“\tEncinitas 7.50% $9.38\n”);
printf(“\tLa Jolla 7.75% $9.69\n”);

getchar();

}

the ouput displays

Sale basis for tax calculation: $125.00
Store Location Tax Rate Tax Amount
=================== ========= ==========
Del Mar 7.25%$9.06
Encinitas 7.50%$9.38
La Jolla 7.75%$9.69

How do I add spaces between the numbers. Thx

This discussion is locked

All Comments