.


:




:

































 

 

 

 


1.14.




 

#include <iostream>

 

#include <cmath>

 

using namespace std;

 

int main (void)

{

double a, b, c;

cout << "ax^2 + bx + c = 0" << endl;

cout << "Enter a: ";

cin >> a;

cout << "Enter b: ";

cin >> b;

cout << "Enter c: ";

cin >> c;

 

// ;

double D = b * b - 4 * a * c;

double x1 = (-b + sqrt(D)) / 2;

double x2 = (-b - sqrt(D)) / 2;

double x = (x1 > x2)? (x1): (x2);

cout << "x = " << x << endl;

 

double chisl = pow(x, 3.0/5) + abs(cos(2*x - 9));

double znam = ceil(log10(1.0/pow(sin(x), 5)));

cout << chisl / znam << endl;

 

return 0;

}

 

1.11.

.

 


1.

 

2.

 

3.

 

4.

 

5.

 

6.

 

7.

 

8.

 

9.

 

10.

 

11.

 

12.

 

13.

 

14.

 

15.

 

16.

 

17.

 

18.

 

19.

 

20.

 

21.

 

22.

 

23.

 

24.

 

25.

 

26.

 

27.

 

28.

 

29.

 

30.

 

31.

 

32.

 

33.

 

34.

 

35.

 

36.

 

37.

 

38.

 

39.

 

40.

 


2.

, , . .

++ , , ; , . , , {}. , , .

++ : , . . , , goto, , . , , assembler ++, .

 

2.1

, : if else switch.

 

2.1.1. if else

if else , . (, , ). , , , , else. , , , . , .

 





:


: 2016-09-06; !; : 317 |


:

:

,
==> ...

1883 - | 1657 -


© 2015-2024 lektsii.org - -

: 0.015 .