77 961
Assignments Done
Successfully Done
In August 2019

Answer to Question #42685 in C++ for Jordan

Question #42685
what is the equivalence of each of these
printf("%3d ", i+1);
printf("%8.2f\n", totalSales;
when using only #include<iostream> ???
Expert's answer
Dear visitor,
The Program will not compile, as &quot;printf&quot; requires stdio.h preprocessor. Also second printf was written incorrectly.
It requires the bracket to be closed.
If we include stdio.h and close the bracket it will output no more than 3-digit number and 8-digit before dot and 2 digits after it.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions