Cc2 langage de programmation structuree 1
Ecole MIAGE Etab Privé Filière TS -TSDI- TSRI - A Langage de programmation Structurée Contrôle N Dossier Théorique Pts un mathématicien veut automatiser des opérations qu'il lui permet de travailler leur t? che demandée d'une manière rapide et sans erreur les opérations sont les suivants Etablir un programme en langage C permettant d ? effectuer la permutation de entiers Pts Établir un programme en langage C permettant de déduire si un nombre donné est positif ou négatif Pts Dossier Pratique Pts les prix de produits dispose dans un tableau T de cases et numérotés de à Établir un programme en langage C permettant de renvoyer le maximum des prix et sa position Pts Établir un algorithme en langage C permettant de déduire si le Prix maximum est pair ou impair Pts Ecole MIAGE Etab Privé Filière TS -TSDI- TSRI - A - Cours du Jour Langage de programmation Structurée Corrigé Contrôle N Dossier Théorique Pts un mathématicien veut automatiser des opérations qu'il lui permet de travailler leur t? che demandée d'une manière rapide et sans erreur les opérations sont les suivants Etablir un programme en langage C permettant d ? effectuer la permutation de entiers Pts Int a b c x Printf Entrer le Nombre ? Scanf i ? a Printf Entrer le Nombre ? Scanf i ? b Printf Entrer le Nombre ? Scanf i ? c X a A b B c C x Printf La Nouvelle Valeur de a est i ? a Printf La Nouvelle Valeur de b est i ? b Printf La Nouvelle Valeur de c est i ? c Établir un programme en langage C permettant de déduire si un nombre donné est positif ou négatif Pts Int a Printf Entrer un N ombre ? Scanf i ? a If a Printf ??Le Nombre est Positif ? If a Printf ??Le Nombre est Négatif ? If a Printf ??Le Nombre est Nul ? Dossier Pratique Pts Ecole MIAGE Etab Privé les prix de produits dispose dans un tableau T de cases et numérotés de à Établir un programme en langage C permettant de renvoyer le maximum des prix et sa position Pts int i n max posmax int T printf Entrer le Nombre de case de la table T scanf i n if n for i i n- i printf Entrer le prix de la case i i scanf i T i max T posmax for i i n- i if T i max max T i posmax i printf le prix max est i n max printf sa position est i posmax else printf Hors Limite getch Établir un algorithme en langage C permettant de déduire si le Prix maximum est pair ou impair Pts Int a Printf Entrer le Prix max ? Scanf i ? a If a Printf ??le Prix max est pair ? Else Printf ??le Prix max est impair ?
Documents similaires
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/117011881757ttqn81aeawdzhqd9v6yinya8yusd7apxv6jttchg0a2l1mau0oefnr0riy1minejnua8fdapf7msqj4m5wdxmwx8lzjncjyl13e.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11701091894roockpjebc4qfbx7vmiqubq7o3glusrepwcb32avdhv5qytcfoy9opykf7potp5xprs5go9qg3tl1jecsobncjxrslrixclijj52.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11701161090vepaeovfmdsylvvt5rmb99ald7wyfeztdvvoevyr7igedo1wkrd8itjmtxxgbhm7rwfuix8erlpjv8iiqaav4jsh75l9wijzb7eq.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11701122574gz64buvpcmpgl0jbaftfu6ibyqdgbpzgyejhnzdhjwoeis0zay6ywrdloz96e5fzzcwihetghk55m9rzyfgx5ogtbsyaasmx47cj.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/117011862705hdoxtsjczicinols1mhkcllkory0gbimaiunvcrifccgkrpqugjwri3xos7hwzpzpxje2ifmmgwsuunxkh01hiqwgx5i9g5hoy9.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11705531372fyn478yl83dpinsda4ej8lacc5ohesr5ogdhnqfygzxkjesphn2myhido3gjsgjc7xo80lyenzg80ep4zssirzzjamgemqexoqfb.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/1170102609151sgmadssxtjmqlahepxuqdeif99njixxj8yaa1winw2jvklwpao6ofqp6u6thnrtocpnktvwxlveymkoy2vozjrdkiyynmcypht.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/s7CPfnm3v7cy4KHn66Ua6hbhddFW80vnkScZJtjFn4R7qfl23CrAfdS2TePdne8SJk1Q88MGgxNtydUwDtmmvOD2.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11701082916tjyea0kkjmc6in6jjbogslkrtmwragkpjzx5bxqgh34n8jo45ouo1bna2uqf69hbzxavvihqkjs5lqx4kenvtzxuxtgaz2eqi3yx.png)
![](https://b3c3.c12.e2-4.dev/disserty/uploads/preview/11701035851kchl42r5nnlujezmpcv1jrkbumoa2ze7ydjikwtx3jmxic8lipyv5aa6p4hrt2ez3lpzo59h2iauly23up2z4xwsyhdprxtebhoj.png)
-
21
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise- Détails
- Publié le Oct 29, 2022
- Catégorie Administration
- Langue French
- Taille du fichier 54.8kB