.


:




:

































 

 

 

 


: 4

y = |2x-x2|. - .


 

.

. main(), . , , . main() , . , main , .

, , .. . ( , ) , . , , . . , count, Count COUNT . .

. , .. :

_ = ;

. , :

abs .

 


C Microsoft Visual C++ 2008 Express.


 

. :

 

// labbka.cpp: .

//

 

#include "stdafx.h"

#include <stdio.h>

#include <math.h>

#include <locale.h>

 

int _tmain(int argc, _TCHAR* argv[])

{

setlocale (LC_ALL, "rus");

 

float x=0;

float y=0;

 

 

printf (" \n");

printf (" : ");

 

//

scanf("%f", &x);

 

y=abs(2*x-x*x);

 

printf(" %.2f\n", y);

 

 

getchar();

getchar();

return 0;

}


 

y = |2x x2|, x y - . , -, C.

 



<== | ==>
| :
:


: 2016-09-03; !; : 436 |


:

:

,
==> ...

1723 - | 1490 -


© 2015-2024 lektsii.org - -

: 0.012 .