Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- int n;
- float basic;
- float bonus;
- for(;;)
- {
- printf("Enter the Emp No = ");
- scanf("%d",&n);
- if(n==999)
- {
- break;
- }
- else
- {
- printf("Enter Employee Salaryn");
- scanf("%f",&basic);
- printf("Basic Salary is %f",basic);
- if(basic < 100000)
- {
- printf("Debug 1");
- bonus = 0.75 * basic;
- }
- else
- {
- printf("Debug 2");
- bonus = 0.5 * basic;
- }
- printf("Employee %s Bonus is %.2f",n,bonus);
- }
- basic = 0.0f;
- bonus = 0.0f;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement