.


:




:

































 

 

 

 





Program1 . (. 4). . 2. , _ F8 ( M_File -> Run -> Step ver, _Step ver) .

_F9 _ Run, .

. 4. z scanf()

2.

,

1 F8 int main (int argc, char* argv[ ])

2 F8 printf(\n Input x, y, z and + Enter: );

3 F8 scanf(%d%d%d, &x, &y, &z);

4 F8 Output ( ),

: Input x, y, z and + Enter: 1 10 100

5 Enter
printf( Data: x = %d y = %d z = %d \n, x, y, z);

6 ,

7 F8 sum = x + y + z;

8 F8 pr = x * y * z;

9 F8 printf(\n The results: );

10 F8 printf( x + y + z = %d x * y * z = %d \n, sum, pr);

11 F8 getch();

12

13 Enter (_ Enter getch()
return 0;

14 F8 }

15 F8

: _ F4 ( M_File -> Run to Cursor, _Run to Cursor) , . _ F4 , . Output.

_ F7 (_Trae Into M_File -> Trae Into).

_Ctrl + F2.





:


: 2015-10-01; !; : 511 |


:

:

, .
==> ...

1474 - | 1301 -


© 2015-2024 lektsii.org - -

: 0.009 .