Projet d’informatique : Encadré par : Mr. Khalid JEBARI HASSANI Réalisé par: Za
Projet d’informatique : Encadré par : Mr. Khalid JEBARI HASSANI Réalisé par: Zakariae CHELLE Mouad SLAOUI Maroua AMAL Wisal EL AIDI Hamza KARTIT #include <stdio.h> #include <stdlib.h> int main() { int t[10]; int i ,m ,c,j; for(i=0;i<10;i++) { printf("entrer la %d valeur du tableau: ",i+1); scanf("%d",&t[i]); } for(i=0;i<10;i++) { for(j=0;j<10-i-1;j++) { if(t[j]>t[j+1]) { m=t[j]; t[j]=t[j+1]; t[j+1]=m; } } } printf("le tab croissant sera:\n"); for(i=0;i<10;i++) { printf("%d\t",t[i]); } printf("\nle tab decroissant sera:\n"); for(i=0;i<10;i++) { for(j=0;j<10-i-1;j++) { if(t[j]<t[j+1]) { m=t[j]; t[j]=t[j+1]; t[j+1]=m; } } } for(i=0;i<10;i++) { printf("%d\t",t[i]); } return 0; } uploads/Ingenierie_Lourd/ devoir-algorithme-de-tri.pdf
Documents similaires
" Romorantin, le projet oublié " Léonard de Vinci www.romorantin-leprojetoublie
0
0

DIRECTION TECHNIQUE / INGENIERIE / BE MTGC Date : 06/12/2019 COMPTE – RENDU DE
0
0

Département de Génie électrique et Génie mécanique Projet de fin d’études Intit
0
0

ANNEE UNIVERSITAIRE 2015- 2016 Université Sidi Mohamed Ben Abdellah Faculté des
0
0

CONCRÉTI- SATION DU PROJET entrepreneurial Contenu Les étapes de concrétisation
0
0

PROJET DE CONSTRUCTION D’UN IMMEUBLE R+2 DESCRIPTIONS ET QUANTIFICATIONS DES OU
0
0

Appel à Candidature Formation de Formateurs au profit du personnel des antennes
0
0

LICENCE PROFESSIONNELLE - CAA CHARGÉ.E D’AFFAIRES EN AGENCEMENT Lieu de formati
0
0

Cycle de vie de projet Cycle de vie de projet Présomption de faisabilité Faisab
0
0

Projet informatique Un projet informatique est un objectif à réaliser en un tem
0
0

-
42
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Attribution requise- Détails
- Publié le Oct 25, 2021
- Catégorie Heavy Engineering/...
- Langue French
- Taille du fichier 0.4593MB