KPIT Technologies interview question

Simple coding questions. Based on datatypes and calculations