Add files via upload
This commit is contained in:
parent
38b58e9273
commit
40fb262811
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue