First commit
This commit is contained in:
16
IUT/Info1/TD/Exercices/Deg2Far/main.cpp
Normal file
16
IUT/Info1/TD/Exercices/Deg2Far/main.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <iostream>
|
||||
#include "Deg2Far.h"
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
// Convertion Degrés vers Farenheight
|
||||
float deg;
|
||||
float far;
|
||||
|
||||
cout << "Entrez la température en degrés : ";
|
||||
cin >> deg;
|
||||
|
||||
far = deg2Far(deg);
|
||||
cout << deg << "°C = " << far << "°F" << endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user