Hodge-1053 icon

Disk Bad Sectors Pascal Program

Hodge-1053 | PRO | 07/26/16 07:47:53 PM UTC | 0 ⭐ | 7637 👁️ | Never ⏰ | []
Pascal |

700 B

|

None

|

0 👍

/

0 👎

program sectors;
 
uses crt;
 
const    bytes_per_sector       =       512;
 
var      bs,final       :       Integer;
         disk           :       string;
         yo             :       Char;
 
begin
     repeat {*** enter the details ***}
     clrscr;
     write('Enter your disk details: ');
     readln(disk);
     writeln;
     write('Enter the number of bytes in bad sectors: ');
     readln(bs);
     writeln;
 
{ *** Here's where we work out how many bad clusters are on the disk ***}
     final:=bs div bytes_per_sector;
 
     writeln('Your ',disk,' disk has ',final,' bad clusters on it.');
 
     gotoxy(1,24);
     write('Again? ');
     readln(yo);
     until yo in ['n','N'];
end.

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  • Syizuxtrn icon
    05/18/26 01:54:29 AM UTC
    text |

    0 B

    |

    0 👍

    /

    0 👎

    Best t33n active cpx link daily updates!
     Copy and paste the link in a new browser tab and then hit enter!
     https://crazyporn.xxx/members/157354/?asgtbndr=1&play=true&spon=adworld&zone=400