Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- printf("Somme asc (float) :%.52f", somme);
- }
- void calculpower(int base, int puissancemax)
- {
- int i,somme;
- somme = 0;
- for(i=0; i<= puissancemax; i++)
- {
- somme += (int)(pow((double)(base),(double)(i)));
- printf("\n somme = %d base = %d puissance = %d",somme, base, i);
- }
- printf("\n somme finale = %d \n",somme);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement