Advertisement
Xioth

C - TP1 - somme.c

Jan 17th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int somme = (10*(11))/2;
  7.  
  8.     printf("La somme des 10 premiers entiers est egale a %d\n", somme);
  9.  
  10.     system("pause");
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement