Book of tasks on programming. Old version

 

 by Aliaksandr N. Prykhodzka

 

обучение, computer, memory, file, with, procedure, implementation, assembler, alter, по программированию, editor, метод пузырьков, mod, mod, cell, сервис
 

for valuable work you must have JavaScript (allow active content)

Pascal. Pa.11. Nest of tasks. Working with numbers

 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.11.1     Answer

Write program which input a two-digit number from 10 to 99 and output second digit of this number.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.11.2     Answer

Write program which input a two-digit number from 10 to 99 and output first digit of this number.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.11.3     Answer

Write program which input a two-digit number from 10 to 99 and output sum of digits of this number.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.11.4     Answer

Write program which input a three-digit number from 100 to 999 and output second digit of this number.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.11.5     Answer

Write program which input a three-digit number from 100 to 999 and output sum of digits of this number.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.11.6     Answer

Write program (with using cycle) which input afour-digit number from 1000 to 9999 and output sum of digits of this number.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.11.7     Answer

Write program which input a number from 0 to 999999 (use variable longint) and output sum of digits of this number.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.11.8     Answer

Elaborate step-by-step algorithm of output all three-digit numbers which have sum of digits is equal 10.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.11.9     Answer

Elaborate step-by-step algorithm of program which input number and output sum of digits of this number.


 

©   Aliaksandr Prykhodzka    1993 - 2007