Advertisement
mario_mos

carrecube

Jul 24th, 2023
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <stdlib.h>
  4. #include <time.h>
  5. #include <string.h>
  6.  
  7. int cube(int x)
  8. {
  9. return ( x*x*x);
  10. }
  11. int carre(int x)
  12. {
  13. return ( x*x);
  14. }
  15.  
  16. int main()
  17. {
  18. int x = 2;
  19. printf("x au cube %d\n", cube(x));
  20. printf("x au carré %d\n",carre(x));
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. return 0;
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement