1
0
Fork 0

Add files via upload

This commit is contained in:
MGislv 2020-12-13 23:04:05 +01:00 committed by GitHub
parent 38b58e9273
commit 40fb262811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 0 deletions

26
stuff/monthly-pay.c Normal file
View File

@ -0,0 +1,26 @@
/*
* Don't ask me why
*/
#include <stdio.h>
int main()
{
int hours, pay = 0;
printf("Input the amount of working hours per month: ");
scanf("%d", &hours);
if (hours < 0)
return 1;
pay = 15 * hours;
if (hours > 50)
pay -= 50;
if (hours > 100)
pay -= 100;
printf("The pay is: %d ?\n", pay);
}