Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- //double x;
- // int a, b, c;
- //void input() {
- // cout << "Enter x: ";
- // cin >> x;
- // cout << "Enter a: ";
- // cin >> a;
- // cout << "Enter b: ";
- // cin >> b;
- // cout << "Enter c: ";
- // cin >> c;
- //}
- double celsiusToFahrenheit(const double degree) {
- return degree * 1.8 + 32;
- }
- int main() {
- // input();
- // while (b < a) {
- // cout << "Input range again:\n";
- // input();
- // }
- for (double c = 15; c < 30; c++) {
- cout << "Celsius: " << c << " --> Fahrenheit: " << celsiusToFahrenheit(c) << ";\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement