Boot from a bootable device OTHER THAN the hard drive you want to format. In other words, if you want to format the C drive, boot from a DVD drive, floppy, network or USB, THEN format the C drive.
to format the hard disk go to My computer perform right click go to manage will open the window computer Management->storage->Disk Management(local)
select the disk drive right click and once...