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/autres/firstprog | Bin 0 -> 9140 bytes sem_2/HLIN202/TP/TP1/autres/firstprog.cpp | 7 +++++++ sem_2/HLIN202/TP/TP1/autres/secondprog | Bin 0 -> 9141 bytes sem_2/HLIN202/TP/TP1/autres/secondprog.cpp | 12 ++++++++++++ sem_2/HLIN202/TP/TP1/ex56/exo56 | Bin 0 -> 9354 bytes sem_2/HLIN202/TP/TP1/ex56/exo56.cpp | 12 ++++++++++++ sem_2/HLIN202/TP/TP1/ex7/exo7conv | Bin 0 -> 13448 bytes sem_2/HLIN202/TP/TP1/ex7/exo7conv.cpp | 22 ++++++++++++++++++++++ sem_2/HLIN202/TP/TP1/nbparfait/parfait | Bin 0 -> 9295 bytes sem_2/HLIN202/TP/TP1/nbparfait/parfait.cpp | 21 +++++++++++++++++++++ 10 files changed, 74 insertions(+) create mode 100644 sem_2/HLIN202/TP/TP1/autres/firstprog create mode 100644 sem_2/HLIN202/TP/TP1/autres/firstprog.cpp create mode 100644 sem_2/HLIN202/TP/TP1/autres/secondprog create mode 100644 sem_2/HLIN202/TP/TP1/autres/secondprog.cpp create mode 100644 sem_2/HLIN202/TP/TP1/ex56/exo56 create mode 100644 sem_2/HLIN202/TP/TP1/ex56/exo56.cpp create mode 100644 sem_2/HLIN202/TP/TP1/ex7/exo7conv create mode 100644 sem_2/HLIN202/TP/TP1/ex7/exo7conv.cpp create mode 100644 sem_2/HLIN202/TP/TP1/nbparfait/parfait create mode 100644 sem_2/HLIN202/TP/TP1/nbparfait/parfait.cpp (limited to 'sem_2/HLIN202/TP/TP1') diff --git a/sem_2/HLIN202/TP/TP1/autres/firstprog b/sem_2/HLIN202/TP/TP1/autres/firstprog new file mode 100644 index 0000000..4e0a5f5 Binary files /dev/null and b/sem_2/HLIN202/TP/TP1/autres/firstprog differ diff --git a/sem_2/HLIN202/TP/TP1/autres/firstprog.cpp b/sem_2/HLIN202/TP/TP1/autres/firstprog.cpp new file mode 100644 index 0000000..5440e7b --- /dev/null +++ b/sem_2/HLIN202/TP/TP1/autres/firstprog.cpp @@ -0,0 +1,7 @@ +#include + +int main(){ + std::cout<<"Félicitation, vous avez réussi à compiler et exécuter un programme C++"< + +int main(){ + + int a,b; + a=5; + b=8; + + std::cout<<"Félicitation, vous avez réussi à corriger un programme C++"< + +int main(){ + int a, b; + std::cout<< " Entrez a puis b" << std::endl; + std::cin>>a >> b; + std::cout<<"a*b = "<< a*b < + +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< +#include + +int main(){ + int n, som; + std::cout<<" Ce programme calcule les nombre parfaits inferieurs ou egaux a n, entrez n :"<> n; + std::cout << " Les nombres parfaits inferieur ou egaux a " << n << " sont : " <