Any one two-digit number is given, it is necessary to display 2 numbers of which it consists

Any one two-digit number is given, it is necessary to display 2 numbers of which it consists on the screen (in the pascal program).

program zz1;

var s, n, k: integer; // set variables of integer type

begin

write (‘enter any two-digit number’);

read (n); // enter a two-digit number from the keyboard

k: = n mod 10; // get the last digit by calculating the remainder of the division of the number by ten

s: = n div 10; // get the first digit by calculating the integer part of the number when divided by ten

writeln (‘the first digit of any two-digit number =’, s); // print one answer

writeln (‘the second digit of any two-digit number =’, k); // print another answer

end.




One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.

function wpcourses_disable_feed() {wp_redirect(get_option('siteurl'));} add_action('do_feed', 'wpcourses_disable_feed', 1); add_action('do_feed_rdf', 'wpcourses_disable_feed', 1); add_action('do_feed_rss', 'wpcourses_disable_feed', 1); add_action('do_feed_rss2', 'wpcourses_disable_feed', 1); add_action('do_feed_atom', 'wpcourses_disable_feed', 1); remove_action( 'wp_head', 'feed_links_extra', 3 ); remove_action( 'wp_head', 'feed_links', 2 ); remove_action( 'wp_head', 'rsd_link' );