Skip to content

ex2

← Back

Basic Info

Computer Programming 1
└── Lecture 10 LAB Basic Concepts InputStream
    └── ex2.cpp

Preview

using namespace std;
#include <iostream>

int main(){
    float F;
    cout << "Please input the temperature in Fahrenheit: ";
    cin >> F;

    cout << "temperature in Celsius degrees: " << (F-32)/1.8 << endl;

    return 0;
}