Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

C/C++: Calculer la tangente de l’angle avec la fonction ‘tan()’

 calcul
{filelink=13984}

#include
<math.h>
#include <stdio.h>
 
int main(void)
{
  double val = -1.0;
 
  do {
    printf("La tangent de %.2f = %.2f"
"n", val, tan(val));
    val += 0.1;
  } while(val<=1.0);
 
  return 0;
}

No comments yet.

Leave a Comment