Book of tasks on programming. Old version

 

 by Aliaksandr N. Prykhodzka

 

program, path, интегрированный, examples, address, навучальны зборнiк па праграмаванню, word, интегрированный, обзор, manuel de programmation
 

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

Pascal. Pa.6. Nest of tasks. Writing of simple programs

 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.6.1     Answer

Write program for calculating sum of two numbers.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.6.2     Answer

Write program which inputs two numbers and outputs them in return order.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.6.3     Answer

Write program which input two numbers and output true if they are equal or false.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.6.4     Answer

Write program which input two numbers and output the maximum number of them.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.6.5     Answer

Write program which input two numbers and output x*y if x>y or x+y otherwise.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.6.6     Answer

Write program which display number 7 one hundred times.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.6.7     Answer

Write program which display numbers from 1 to 100.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.6.8     Answer

Write program for finding sum of numbers from 1 to 100.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.6.9     Answer

Write program which input ten numbers from keyboard and display the sum of these numbers.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.6.10     Answer

Write program for finding sum of numbers from 100 to 200.


 

 

Calculator

/ - division

\ - rest

S - sum of numbers from and to

P - multiply numbers from and to

Pa.6.11     Answer

Write program for finding sum of odd numbers from 1 to 100.


 

©   Aliaksandr Prykhodzka    1993 - 2007