Convert While Loop To For Loop C Program