Well, its no longer the 'if' statements i need to align. In the initial scanf statements, the input is displayed on the screen, whatever the integer the user puts there. That is what I want to be...
Type: Posts; User: Gart08
Well, its no longer the 'if' statements i need to align. In the initial scanf statements, the input is displayed on the screen, whatever the integer the user puts there. That is what I want to be...
lmao, it fixed it...explain please? Also, how can i align the input from the user. Like, if i enter 5000 for gallons, and then 5000 for last quarters gallons, how can i have them aligned (right...
Ah yes, let me repost what i have.
#include <stdio.h>
#include <stdlib.h>
int main( void )
{
Yes, i removed the .2 however, it has had no effect. :(
Yea, I put 30.2f in all of the totals. It did not align them though.
Ok, interesting, adding the if ( gallons != -1 ) inside the while loop containing all of the other if statements seems to have fixed the problem of the loop coming back to the second line of input...
alright, i took away the ".2" did not seem to have any effect, however I am curious as to why the .2 should have been taken away, Does the compiler automatically recognize a double having two...
Yes, i have changed to == in both if statements. Currently I am working on formatting the ouput. I want the cursor to be right aligned when the user enters the initial values. working on that. ...
Well, my teacher said it doesnt matter, she told us to use -1 to exit, and because she has not taught us better methods because we have not gotten that far yet in class, that there will be no need to...
Well, that is suppose to be the logic, however, is that not exactly what I have written?
Bayint, I've reviewed it now, and I see not problems. I'm quite sure there is something wrong with that statement otherwise you would not have posted that line.
The logic here seems to me that...
Well, it produces almost everything i need. Except for after the final input of unpaid balance it doesnt display any of the 'if' statements and it just loops back up to "THANK YOU FOR CHOOSING...
? im not sure what that did. If i have input from a user, and i want to display it at lets say, 20 spaces from the left right justified. how is this done? Ive only seend this done in for loops and...
So now, i am trying to figure out what is wrong with my loop. i will post the new code and it will produce strange results.
#include <stdio.h>
#include <stdlib.h>
int main( void )
{
...
Excuse me, i got it to compile and run, however...there is no output. it just instantly loops back up after the final input is put in and restarts.
Ok, so this is just a stupid little program i wrote for class...it will not compile here it is.
#include <stdio.h>
#include <stdlib.h>
int main( void )
{
Oh? Are you speaking of me leaving out the '&'? I am aware, i was just submitting in a hurry.
Ok, im pretty new but am in a fundamentals course. I need help with widths.
So, basically i need to read a int from the user and display it in a column...so something like this.
int...