15 lines
280 B
C
15 lines
280 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main (void){
|
||
|
int n=5;
|
||
|
int aireC;
|
||
|
aireC=n*n;
|
||
|
printf("Le volume d'un cube de cote 5 est de: %d\n",aireC*n);
|
||
|
|
||
|
int r=5;
|
||
|
int aireS;
|
||
|
aireS=3*r*2;
|
||
|
printf("Le volume d'un cube de rayon 5 est de: %d\n",(4/3)*(aireS/2)*r*r);
|
||
|
return 0;
|
||
|
}
|