SOLVED
Hello guys. I'm pretty new to programming with C and i got a small question.
My program is:
Code:
#include <stdio.h>
int main()
{
printf("Enter an amount: ");
double b = 0;
scanf("%lf", &b);
printf("With tax added : ");
printf(" ");
printf("%.2f\n", b * 1.2);
return 0;
}
i know i could do the 3 printf's is 1 but it soesnt work either way.
after all it should say:" Enter an amount: With tax added : 120.60"
The thing is i got no idea how to make the space before "120.60"
It's always just:"Enter an amount: With tax added :120.60", but i need that space there. ._.
I've been trying for one hour but somehow i can't find a solution.
Would be cool if someone could help me.
Edit: Problem solved.
It was using somethign from another file so it didnt change when i changed the program.