Question: Please Sir, Solve this problem in assembly language using emu 8086 with explanation. It would be better to give a screenshot of output. Please ,Do

Please Sir, Solve this problem in assembly language using emu 8086 with explanation. It would be better to give a screenshot of output. Please ,Do not use any other languages except assembly. Task: Let's write all the positive integer numbers one after another from 1 without any delimiters (i.e. as a single string). It will be the infinite sequence starting with 123456789101112131415161718192021222324252627282930313233343536...

Your task is to print the k-th digit of this sequence.

Input The first and only line contains integer k (1k10000) the position to process (1-based index).

Output Print the k-th digit of the resulting infinite sequence.

Examples input 7 output 7 input 21 output 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!