I understand
Thank you once again for you time
Nurofen
Type: Posts; User: nurofen
I understand
Thank you once again for you time
Nurofen
Thank you so much it works...
Can you please explain why it works that why if you wouldn't mind and not all the othe ways
Thank you again
stevesmithx
I tried \n in printf stts no joy.
I see I have changed the part (thank you )
when i enter -1 why does it as for miles used?
i would like it to go
printf("\nThe overall average miles /...
I still can't get it to work, what i'm I doing wrong?
yes very true.
printf("Enter gallons used, -1 to Exit: ");
scanf("%f", &gallons);
while(gallons != -1) {
total = total + tankful;
counter = counter + 1;
...
sorry people but I've tried but with no joy.
Can someone show me what i'm doing wrong please.
Thanking you in advance
Nurofen
When I do that the output is:
"Enter gallons used, -1 to Exit: " 12.8
and the it repeats to
"Enter gallons used, -1 to Exit: "
it should be
"Enter gallons used, -1 to Exit: " 12.8
"...
I need guidence to solve a problem i'm having with a program (Exercise), When I enter -1 why does the "Enter miles used" show up. It should just print " The overall average miles / gallon was" and...
I bought the book (I say too all learning or just started out (like me) great up todate book)). Only thing Exercises have no Answers sheets.
Is this right?
Exercise 2-1. Write a program that prompts the user to enter a distance in inches and then
outputs that distance in yards, feet, and inches.
/* This program converts inches...
Hi,
I trying to to understand what kind of programs are created in the real world by programmers in C.
What I guess I'm trying to ask is what can I do with my skill? What are the options? Do...
Elysia,
Thank you
Nurofen
Which should I use all the time?
Ivor Horton book shows :
int main(void)
{
return 0;
Thank you all again for your help.
I have decided to put Mark Virtue's cds aside as from your feedback they are not teaching me a good foundation for learning C. I will go for one of the books...
laserlight, Elysia, xuftugulus
Thank you for taking time to explaining and pointing out what i had done wrong.
I'll need to read up on defining before continue with the cd's to get a better...
Hi,
I'm learning C from Mark Virtue's cds chapter3 . I have completed the tasks both work as they should but they are very different from Marks soluations. I would to know if there is a problem...