home *** CD-ROM | disk | FTP | other *** search
- #include <iomanip.h> //jiæ nátáhne iostream.h
- #include <math.h>
-
- int main() {
- cout << setprecision(5);
- for(int i=0;i<11;i++) {
- double x=i/10.0; //10.0 je dûleæité, protoæe 10 by se bralo jako celoçíselné, takæe by probêhlo celoçíselné dêlení.
- cout << setw(5) << x << " " << setw(10) << sin(x) << endl;
- }
- return 0;
- }