Accueil     Soft. MacOSX     Soft. MacOS/PC     PHP     Python     ROMS GBA     TP d'info     DBZ-GT     Martingales     Galeries     Liens     @  

Exercice 3


/*
* TP1 : initiation au langage C
*
* Exercice 3 - 24/09/02
*
* ©2002 All Rights Reserved to www.Software-DS.com
*/


#include <stdio.h>
#define n 4

int main(void)
{
int i,fact=1;
float x=2,xpuiss=1,somme=0;

for(i=1;i<=n;i++){
xpuiss*=x;
fact*=i;
somme+=xpuiss/fact;
}
printf("resultat %f\n",somme);

return 0;
/* ©2002 All Rights Reserved to http://www.Software-DS.com */
}





Haut de la page - Page précédente - Page générée en 0.00166 sec.
Recherche personnalisée
 

1843944 visiteurs.   ©2001-2023 All Rights Reserved to Software-DS.com
Made with a mac  
Confidentialité