Temperature converter c++ program

Hello, i am new to c++ and was given a program to write. I am supposed to list all the temperatures between -100 and 235 and convert and list them from Celsius Fahrenheit and kelvin. I am completely lost and have read over the book and all over the internet but cannot find any answers. Any helP is appreciated. Thanks
Here's a start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>

double C_to_F( double C )
{
    return 1.8 * C + 32;
}

int main()
{
    std::cout << "enter temperature in Celcius: ";
    double C = 0.0;
    std::cin >> C;
    std::cout << C << "°C is " << C_to_F( C ) << "°F\n";
}
Thank you for your response. The program however is not supposed to use a user input. It is supposed to list all the temps from -100 to 235 from Celsius to Fahrenheit and kelvin. Thank you
The program however is not supposed to use a user input. It is supposed to list all the temps from -100 to 235 from Celsius to Fahrenheit and kelvin.

Perhaps you missed where integralfx said, "Here's a start." From that point you are supposed to take what you can use and modify it to meet your needs. You were "completely lost" and now you have a starting point, so start.
closed account (48T7M4Gy)
The program however is not supposed to use a user input.
kickstart hint: a for loop ...

http://www.cplusplus.com/doc/tutorial/control/
Topic archived. No new replies allowed.