Mathc initiation/Fichiers c : c01e

Un livre de Wikilivres.


Sommaire


Installer et compiler ces fichiers dans votre répertoire de travail.

c01e.c
/* ------------------------------ */
/*  Save as :   c01e.c            */
/* ------------------------------ */
#include <stdio.h>
/* ------------------------------ */
int main(void)
{

 printf("First halt.");
 getchar();

 printf("Second halt.");
 getchar();

 printf("Press return to continue.");
 getchar();

 return 0;
}
/* ------------------------------ */
/* ------------------------------ */


Petit exemple pour résumer nos connaissances.


Exemple de sortie écran :

First halt.
Second halt.
Press return to continue.