J cherche reponce pour un ex de programation

omar27193 Messages postés 3 Statut Membre -  
 olivier stern -
salut je cherche une reponce pour cet exercice
d'informatique
soit n un entier composer de trois chiffre on demande de calculer puis d'afiicher la somme de cubes de n
e merci d'avance
A voir également:

2 réponses

Gisl144 Messages postés 113 Statut Membre 6
 
en C à la bourrin tu peux avoir ça :

#include <stdio.h>     
#include <stdlib.h>     

int main()     
{     
    int n = 0; 
    scanf("%d", &n); 
    n = n*n*n;     
    printf("%d", n);     

    return 0;     
}


dis-moi si c'est bon...
0
omar27193 Messages postés 3 Statut Membre
 
oui c bon merci beaucoup
0
olivier stern
 
hé Omar ! t'aurais pu t'en sortir tout seul, non?
;)
0
omar27193 Messages postés 3 Statut Membre
 
oui c bon merci
0