How can I format the output of printf to display results below.
Product # Type Description Quantity cost price profit
1211 3 c is fun 2 1.14 2.99 1500
printf(“ “);
number,.type, description ,quanity,
cost, price, profit");
thanks
How can I format the output of printf to display results below.
Product # Type Description Quantity cost price profit
1211 3 c is fun 2 1.14 2.99 1500
printf(“ “);
number,.type, description ,quanity,
cost, price, profit");
thanks
Code:char* MyString; int MyInteger; char MyCharacter; float MyFloat; printf("String: %s, Integer: %d, Character %c, Float: %f", MyString, MyInteger, MyCharacter, MyFloat);
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
man printf
or google for man pages.