.


:




:

































 

 

 

 





. x, y, z. . 2 3.

// :

//

// : x, y, z

// : sum = x + y + z, pr = x * y * z

// ,
// (stdio.h conio.h)

#include <stdio.h> // /, scanf(), printf()

#include <conio.h> // a /, getch()

void main (void)

{ int x, y, z, sum, pr; // int

// x, y, z Enter:

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

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

// :

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

sum = x + y + z;

pr = x * y * z;

printf("\n The results: "); // :

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

getch(); //

} // main ()

. 2. Program1

 


. 3.
(Output)

(): x = 1, y = 10, z = 100, sum = 111, pr = 1000.

(. . 1.1). : . , ++ !

. 1. , . . 3 (Output) . , Output . , , , Word.

1. ,

F9

1 10 100 : x, y, z

Enter , .

Output.

Esc





:


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


:

:

, - , ; , - .
==> ...

1471 - | 1477 -


© 2015-2024 lektsii.org - -

: 0.007 .