diff --git a/DEV1.1/CM.md b/DEV1.1/CM.md index 2a7cd4d..3a5d262 100644 --- a/DEV1.1/CM.md +++ b/DEV1.1/CM.md @@ -1114,3 +1114,21 @@ int majeur(const etudiant* e) { } ``` +## Éxercice + +Écrivez un programme qui demande un entier naturel à l'utilisateur et qui créer un Fichier nommé suite.bin contenant les valeurs 0,1,2... jusqu'ç l'entier choisi, au format short. + +```c +#include +#include + + +int main(void) { + short choice; + if(scanf("%hd",&choice) < 1) { + printf("an error as occured while reading "); + } + + +} +``` \ No newline at end of file