what is the equivalence of each of these
printf("%3d ", i+1);
printf("%8.2f\n", totalSales;
when using only #include<iostream> ???
1
Expert's answer
2014-05-22T09:00:57-0400
Dear visitor, The Program will not compile, as "printf" 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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment