move to repo.or.cz
[letusc.git] / ch2 / examples / example3.c
bloba1182b267bb89518eefcf016a2f6ec2421a7da6c
1 #include<stdio.h>
3 int main()
5 int hire_year,current_year;
6 float bonus;
8 printf("Enter the hire year: ");
9 scanf("%d",&hire_year);
11 printf("Enter the current year: ");
12 scanf("%d",&current_year);
14 if((current_year-hire_year)>3)
16 bonus=2500;
17 printf("Bonus is set to 2500/- \n");
19 printf("bye\n");
21 return 0;