fork download
  1. #include <stdio.h>
  2.  
  3.  
  4.  
  5. // Fonction qui calcule la somme
  6. int addition(int x, int y) {
  7. return x + y;
  8. }
  9.  
  10. int main() {
  11. int resultat = addition(2, 4);
  12. printf("La somme est : %d\n", resultat);
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
La somme est : 6