Skip to content

Commit 6ee77ca

Browse files
Merge pull request mohamedtalhaouii#8 from Algorithmiques/main
changes and add
2 parents 14399d6 + e6cd530 commit 6ee77ca

File tree

5 files changed

+47
-42
lines changed

5 files changed

+47
-42
lines changed

README.md

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,5 @@
11
<h1 align="center">
2-
<img src="https://readme-typing-svg.herokuapp.com/?font=Righteous&size=35&center=true&vCenter=true&width=500&height=70&duration=4000&lines=Algorithmiques;Avec+Mohamed+Talhaoui;" />
2+
<img src="https://readme-typing-svg.herokuapp.com/?font=Righteous&size=35&center=true&vCenter=true&width=500&height=70&duration=5000&lines=Algorithmiques+2;Correction+des+TD's+et+TP's;" />
33
</h1>
4-
<h3 align="center"> La Correction des TD's et TP's d'Algorithmique 2 (Python) de Prof El Ouahabi & Prof Essahraoui (MIP) </h3>
5-
6-
<p align="left"> <img src="https://komarev.com/ghpvc/?username=mohamedtalhaouii&label=Profile%20views&color=0e75b6&style=flat" alt="mohamedtalhaouii" /> </p>
7-
8-
- 🐍 I’m currently learning **Python**
9-
10-
- 📝 I regularly write articles on https://mohamedtalhaoui.me/blog
11-
12-
- 📨 How to reach me **mohamedtalhaouii@outlook.com**
13-
14-
15-
<hr>
164

17-
<h3 align="center">Connect with me :</h3>
18-
<p align="center">
19-
<a href="https://twitter.com/taalhaoui" target="_blank"><img align="center" src="https://skillicons.dev/icons?i=twitter" alt="taalhaoui" height="30" width="40" /></a>
20-
<a href="https://linkedin.com/in/mohamedtalhaoui" target="_blank"><img align="center" src="https://skillicons.dev/icons?i=linkedin" alt="mohamedtalhaoui" height="30" width="40" /></a>
21-
<a href="https://fb.com/mohamedtalhaouiii" target="_blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/facebook.svg" alt="mohamedtalhaouiii" height="30" width="40" /></a>
22-
<a href="https://instagram.com/mohamedtalhaouii" target="_blank"><img align="center" src="https://skillicons.dev/icons?i=instagram" alt="mohamedtalhaouii" height="30" width="40" /></a>
23-
</p>
24-
25-
<hr>
26-
27-
<h3 align="center">Languages and Tools :</h3>
28-
<div align="center">
29-
<img src="https://skillicons.dev/icons?i=html,css,javascript,figma,vscode,github,python,cpp&perline=8" />
30-
</div>
31-
32-
<hr>
33-
<h3 align="center">Support :</h3>
34-
<p align="center"><a href="https://www.buymeacoffee.com/mohamedtalhaoui"> <img align="center" src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" height="50" width="210" alt="mohamedtalhaoui" /></a></p><br>
35-
<hr>
36-
37-
38-
39-
<div align=center>
40-
<img width=390 src="https://github-readme-streak-stats-salesp07.vercel.app/?user=mohamedtalhaouii&count_private=true&theme=react&border_radius=10" alt="streak stats"/>
41-
<img width=390 src="https://github-readme-stats-salesp07.vercel.app/api?username=mohamedtalhaouii&count_private=true&show_icons=true&theme=react&rank_icon=github&border_radius=10" alt="readme stats" />
42-
<br/>
43-
<img width=325 align="center" src="https://github-readme-stats-salesp07.vercel.app/api/top-langs/?username=mohamedtalhaouii&hide=HTML&langs_count=8&layout=compact&theme=react&border_radius=10&size_weight=0.5&count_weight=0.5&exclude_repo=github-readme-stats" alt="top langs" />
44-
</div>
5+
<h3 align="center"> La Correction des TD's et TP's d'Algorithmique 2 (Python) de Prof El Ouahabi & Prof Essahraoui (MIP) </h3>

TD/TD1/EX1-Q1.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Question: Écrire un programme qui permute circulairement les valeurs de trois variables a, b et c.
2+
3+
# Lire les variables a, b et c
4+
a = int(input("Donner la valeur de a: "))
5+
b = int(input("Donner la valeur de b: "))
6+
c = int(input("Donner la valeur de c: "))
7+
8+
# Effectuer la permutation circulaire:
9+
temp = a
10+
a = c
11+
c = b
12+
b = temp
13+
14+
# Écrire la resultat:
15+
print("a = ", a, " , b = ", b, " et c = ", c)

TD/TD1/EX1-Q2.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Question: Ecrire un programme qui lit l'heure et les minutes et affiche l'heure qu'il sera une minute plus tard.
2+
3+
# Lire l'heure et les minutes
4+
heure = int(input("Donner l'heure: "))
5+
minutes = int(input("Donner les minutes: "))
6+
if heure < 0 or heure > 23 or minutes < 0 or minutes > 59:
7+
print("L'heure doit être entre 0 et 23 et les minutes devons être entre 0 et 59")
8+
else:
9+
if minutes == 59:
10+
if heure == 23:
11+
heure = 0
12+
else:
13+
heure = heure + 1
14+
minutes = 0
15+
else:
16+
minutes = minutes + 1
17+
18+
print("Dans une minute, il sera", heure, "heure(s)", minutes, "minute(s)");

TD/TD1/EX1-Q3.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Question: Ecrire un programme qui demande à l’utilisateur de donner un nombre compris entre 10 et 20.
2+
3+
convienne = False
4+
while not convienne:
5+
nombre = int(input("Donner un nombre compris entre 10 et 20: "))
6+
if nombre > 20:
7+
print(" Plus petit ! ")
8+
else:
9+
if nombre < 10:
10+
print(" Plus grand ! ")
11+
else:
12+
convienne = True

TD/TD1/EX1.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)