1. ## Very simple problem

code[
printf("Type in three integers");
scanf("%lf %lf %lf", &m, &n, &o);
printf("%.2f %.2f %.2f", m, n, o);
[/code]

Let's say I put 1 2 -3. How do I make the output look like...
Code:
`+1.00 +2.00 -3.00`

2. I'm pretty sure you'd have to parse each input manually. Save each input into a string and see if it starts with a '-' or not, then you can output a '+' or '-' as necessary. You'd need to convert each string with atof() too.

Right?

3. Code:
`printf("%+.2f %+.2f %+.2f", m, n, o);`

4. No but if he's taking input like "-3.00" that means your solution is assuming positive values only. Right?

5. I thought it might be something about printf() that I didn't know

6. scanf("%lf %lf %lf", &m, &n, &o);
if (m<0) printf("%.2f ",m);
else printf("+%.2f ",m);
if (n<0) printf("%.2f ",n);
else printf("+%.2f ",n);
if (o<0) printf("%.2f ",o);
else printf("+%.2f ",o);

7. Did you read the other posts? Including Dave's post and link?

This code
Code:
`printf("%+.2f", x);`
automatically adds a '+' or a '-' to the number. You don't need to figure it out yourself.