Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // lab6for.cpp : Defines the entry point for the console application.
- #include "stdlib.h"
- #include "stdafx.h"
- #include <stdio.h>
- #include <iostream>
- #include <math.h>
- #include <conio.h>
- int main(){
- float x;
- float z, n, m; //zminni dla obchuslenna
- float l;
- int p = 0;
- for (x = 2, l = 0; x < 20; x += 0.09, l++) {
- if (l == 0)printf("Shynkler Taras, IT-11, for\n|------------x----------------------result------|\n");
- if (l == 13) {
- p++;
- printf("Page:%d Natusnit knopky dla prodovzenna\n",p);
- l = -1;
- _getch();
- }
- else {
- z = sqrt(x);
- n = tan(z) + sin(x - 3.1);
- if (n < 0) {
- printf("------------------------------------------------\n|\t %f \t|\t Minus korin \t|\n ", x);
- }
- else {
- m = pow(n, 1. / 6.);
- printf("------------------------------------------------\n|\t %f \t|\t %f \t|\n ", x, m);
- }
- }
- }
- _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement