fork download
  1. #include <stdio.h>
  2. int main(){
  3. int age = 0;
  4. printf("Quel age avez-vous ? ");
  5. scanf("%d", &age);
  6. while (age >= 18){
  7. printf("\n%d ans, tu es majeur !",age);
  8. break;
  9. }
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 10320KB
stdin
18
stdout
Quel age avez-vous ? 
18 ans, tu es majeur !