C Program - 6
C Program - 6
–
#include <stdio.h>
int main(){
float basic, ot, holiday, gross_salary, tru;
// Displaying output
printf("Basic Salary: %.0f \n " ,basic);
printf("OT Pay: %.0f \n" ,ot);
printf("Holiday Pay: % .0f \n",holiday);
printf("Gross salary of the employee is: %.0f \n",gross_salary);
if (items <= 2) {
printf("Notification: Need to purchase %s, quantity is low! \n",name);
}
else{
printf("Message: It's sufficient! Number of items is %d",items);
}
}