Created
January 29, 2014 09:40
-
-
Save Yago/039acb27a75ace2c52ae to your computer and use it in GitHub Desktop.
C - Récupéré saisie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int age = 0; // Variable contenante | |
scanf("%d", &age); // Dois taper son age stock? dans la variable | |
// Exemple : | |
int main(int argc, char *argv[]) | |
{ | |
int age = 0; // On initialise la variable ? 0 | |
printf("Quel age avez-vous ? "); | |
scanf("%d", &age); // On demande d'entrer l'?ge avec scanf | |
printf("Ah ! Vous avez donc %d ans !\n\n", age); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment