hi willrs2
here is what you need for your loop implementation:
http://www.cprogramming.com/tutorial/lesson3.html
1st: I'd suggest you to divide your code in contextual blocks, in order to make it more readable, for us and for you too.
2nd: if you need to print a line like
Code:
The wind chill is: <value>
You may put all these data into a single row of code:
Code:
cout << "The wind chill is: " << ch << "\n";
3rd: <iostream> provides a useful "endl" (end line) to let you avoid typing "\n" everytime:
Code:
cout << variable << endl;
just an example:
note the separated blocks of lines and where variable declarations should be put
Code:
int main(int argc, char *argv[])
{
int temp, vel;
int ch;
cout << "Wind Chill Calculator...\n" ;
cout << "By William Seed\n" ;
cout << "Enter the temperature:";
cin >> temp;
cout << "Enter the wind speed:";
cin >> vel;
ch = 35.75 + (.6215 * temp) - (35.75 * pow(vel,.16)) + (.4275 * temp * pow(vel,.16));
cout << "The wind chill is: " cout << ch << endl;
system("PAUSE");
return EXIT_SUCCESS;
}