P005.c (584B)
1 /* 2 * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 3 * Repo: https://github.com/notamitgamer/bsc 4 * License: MIT 5 */ 6 7 /* A person is paid Rs. 455 for each day he works and fined 8 Rs. 150 for each day he remains absent. WAP to calculate his 9 monthly income taking the number of days present as input. */ 10 11 #include<stdio.h> 12 int main() { 13 int daily_wage = 455, fine = 150, present, absent, income; 14 printf("No of days present : "); 15 scanf("%d", &present); 16 absent = 30 - present; 17 income = (present * 455) - (absent * 150); 18 printf("\nIncome : %d",income); 19 return 0; 20 }