move to repo.or.cz
[letusc.git] / ch2 / exercises2 / ex7.c
blob93095c94e0c1914141cd2720544adabfd3e30865
1 /*worker efficiency problem*/
3 #include<stdio.h>
5 int main()
7 float hours;
9 printf("Enter the time required by the worker:");
10 scanf("%f",&hours);
12 if(hours>2 && hours<=3)
13 printf("Woker is highly effecient\n");
14 else if(hours>3 && hours<=4)
15 printf("Worker is ordered \n");
16 else if(hours>4 && hours<=5)
17 printf("Worker is given training\n");
18 else if(hours > 5)
19 printf("Worker is fired\n");
20 else
21 printf("Worker must be awarded\n");
23 return 0;