From 9fe033ea88c2f705ec18c232873d056e0c229d72 Mon Sep 17 00:00:00 2001 From: Gaspard Coulet Date: Wed, 28 Apr 2021 23:05:53 +0200 Subject: Initial commit --- sem_2/HLIN202/TP/TP1/ex7/exo7conv | Bin 0 -> 13448 bytes sem_2/HLIN202/TP/TP1/ex7/exo7conv.cpp | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 sem_2/HLIN202/TP/TP1/ex7/exo7conv create mode 100644 sem_2/HLIN202/TP/TP1/ex7/exo7conv.cpp (limited to 'sem_2/HLIN202/TP/TP1/ex7') diff --git a/sem_2/HLIN202/TP/TP1/ex7/exo7conv b/sem_2/HLIN202/TP/TP1/ex7/exo7conv new file mode 100644 index 0000000..fe731d5 Binary files /dev/null and b/sem_2/HLIN202/TP/TP1/ex7/exo7conv differ diff --git a/sem_2/HLIN202/TP/TP1/ex7/exo7conv.cpp b/sem_2/HLIN202/TP/TP1/ex7/exo7conv.cpp new file mode 100644 index 0000000..3519b24 --- /dev/null +++ b/sem_2/HLIN202/TP/TP1/ex7/exo7conv.cpp @@ -0,0 +1,22 @@ +#include + +int main(){ + float a,c; + int b=1; + std::cout<< " Entrez une temperature en fahrenheit ou en celcius" << std::endl; + std::cin>>a; + std::cout<<"Est ce en fahrenheit (1) ou en celcius(2)?"<> b; + if ( b == 1) { + c = ( a - 32 )* (5.0/9.0); + std::cout<