fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a = 2;
  6. int b = 4;
  7. int somme;
  8.  
  9. // Calcul de la somme
  10. somme = a + b;
  11.  
  12. // Affichage du résultat
  13. printf("La somme de %d et %d est : %d\n", a, b, somme);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 5300KB
stdin
Standard input is empty
stdout
La somme de 2 et 4 est : 6