Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Correcting the code
#13
For example:
N# <= calculated before the loop

 0000050 ENTER => 50
  000050 ENTER => 50
  00050 ENTER => 50
    0050 ENTER => 50
      050 ENTER => 50
       50 ENTER => 50
0000000 ENTER => 0
  000000 ENTER => 0
   00000 ENTER => 0
     0000 ENTER => 0
      000 ENTER => 0
        00 ENTER => 0
          0 ENTER => 0
0000123 ENTER => 123
 000123 ENTER => 123
   00123 ENTER => 123
    0123 ENTER => 123
     123 ENTER => 123
        ENTER => N#

When the ENTER key is pressed, it is supposed to take the value calculated before the loop. Then H# = N#
There is probably also a possibility, which I have not written about before, that if you press the zero (0) key, there will be an automatic exit from the loop. There is no point in entering zeros (0) before significant figures. If someone hits zero (0), you know that nothing will happen further. But this is an additional option.

<bplus> is close to solving it but for some unknown reason it doesn't want to finish the job. And I respect that.
My code works fine, I just wanted to improve it. If this is a big problem, the topic can be closed.
Reply


Messages In This Thread
Correcting the code - by Chris - 10-27-2023, 07:19 PM
RE: Correcting the code - by bplus - 10-27-2023, 08:28 PM
RE: Correcting the code - by SMcNeill - 10-27-2023, 09:31 PM
RE: Correcting the code - by Chris - 10-28-2023, 06:34 AM
RE: Correcting the code - by SMcNeill - 10-28-2023, 01:46 PM
RE: Correcting the code - by Stuart - 10-28-2023, 10:43 AM
RE: Correcting the code - by Chris - 10-28-2023, 11:34 AM
RE: Correcting the code - by Chris - 10-28-2023, 11:49 AM
RE: Correcting the code - by bplus - 10-28-2023, 12:55 PM
RE: Correcting the code - by Chris - 10-28-2023, 02:13 PM
RE: Correcting the code - by bplus - 10-28-2023, 02:46 PM
RE: Correcting the code - by SMcNeill - 10-28-2023, 06:18 PM
RE: Correcting the code - by Chris - 10-28-2023, 07:44 PM
RE: Correcting the code - by bplus - 10-28-2023, 07:47 PM
RE: Correcting the code - by SMcNeill - 10-28-2023, 09:48 PM
RE: Correcting the code - by bplus - 10-28-2023, 07:51 PM



Users browsing this thread: 2 Guest(s)