Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int f(int);
  5.  
  6. int main()
  7. {
  8.     int x = 100;
  9.     int y = 60;
  10.     int result = 2*x+2*y;
  11.     printf ("Le perimetre d'un rectangle de Lougueure %d et de largeur %d est de %d.\n", x, y, result);
  12.     return 0;
  13. }
  14.  
  15. int result(int x, int y)
  16. {
  17.     return 2*x+2*y;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement