Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <stdlib.h>
- #include <time.h>
- #include <string.h>
- int cube(int x)
- {
- return ( x*x*x);
- }
- int carre(int x)
- {
- return ( x*x);
- }
- int main()
- {
- int x = 2;
- printf("x au cube %d\n", cube(x));
- printf("x au carré %d\n",carre(x));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement