You are on page 1of 1

Aufg 1.

2 Sinustabelle
Deklarationen
float x, delta_x, pi;

Woher kommt pi?


pi=3.1415;

delta_x=(pi/2.0)/9.0;

for (int i=0; i<=9; i=i+1)

x=i*delta_x;

cout << "sin(" << i*10.0 << ") = " << sin(x) << endl;

You might also like