#include <iostream>
#include <fstream>
#include <cmath>
#include <windows.h>
#include <string>
using namespace std;
int main()
{
string temp;
string temp2;
system("notepad.exe new.txt");
ofstream fout;
fout << "hellooo" << endl;
float a, c, d;
c = 0;
while (c < 101) {
d = (5 * ((c * 1.8) + 32) + 2297) / 2457; 55;
a = 325.8 * sqrt(d);
// print on the screen (console)
cout << c << endl;
cout << a << endl;
Sleep(100);
the speed of sound at each temperature in (oC) over 0 to 100oC range.
i cant get it to show this in cout
and i need to make columns for both sections
i have used \n
no luck
thanks
why are you printing out c when c=0 and you never change that?