You are on page 1of 1

#include <stdio.h> #include <stdlib.

h> //prototypes (declaration) void code_jour(); //difinition (programmation) void code_jour() { int code ; printf("v uill sai \n"); scanf ("%d",&code); switch (code) { case 1: printf ("lundi \n"); break; case 2: printf ("mar \n") ; break; case 3: printf ("mer \n"); break; case 4: printf ("j \n"); break; case 5: printf ("vdr \n"); break; case 6: printf ("sam \n"); break; case 7: printf ("dm \n"); break; default: printf ("erreur \n"); } } int main() { //appel code_jour(); system("PAUSE"); return 0; }

You might also like