#include "stdafx.h"
#include <iostream>
#include <iomanip>
usingnamespace std;
int main()
{
int a,b,c,d,e;
float C,F,A,r,pi,h;
a = 1 ;
b = 5 ;
c = 4 ;
d = 2;
e = 3 ;
C = 9.12;
F = 7.15;
A = 5.72;
r = 3.56;
pi = 3.14;
h = 0.5555555556;
cout << "\t\t COXCH";
cout << "\n\t\t\t\t VC";
cout << "\n\n\t\t\t\t CS V30";
cout << "\n\t\t\t\t Beginning C++";
cout << "\n\n\t\t\t\t John Doe\n\n";
std::cout << std::setfill('0') << std::setw(6) << std::setprecision(4);
cout << "\n The value of a from the equation a-squared = b-squared + c-squared = " << b*b + c*c;
cout << "\n\n The value of c from a+b divided by d+e \t\t\t = " << (a+b)/(d+e);
cout << "\n\n The value of C from C = 5/9*(F-32) \t\t\t = " << h *(F-32);
cout << "\n The value of r from A = pi times r-squared\t\t\t = " << pi*(r*r);
cout << "\n\n\n";
return 0;
first time posting. i need help. when i run i want the answers to be in XXX.XX format. for example if my answer is 1 i would like it to be displayed as 001.00 if you guys could help me out that would be great. FYI i included this part //std::cout << std::setfill('0') << std::setw(6) << std::setprecision(4);// cause someone on another forum told me it would work but doesnt.