Program not printing anything

@devanshkapur 2 mistakes


corrected and commented