Group Insurance

Write a program calculate the group insurance using following condition.
1. Fix 96 Tk If basic is grater then or equal to 5000
2. Fix 72 Tk If basic is grater then or equal to 3000
3. Fix 48 Tk If basic is grater then or equal to 1700
4. Other wise 0 Tk

Program:
#include<stdio.h>
main(){
int basic,gi;

printf("Enter Basic = ");
scanf("%d", &basic);

if(basic>=5000)
gi=96;

else if(basic>=3000)
gi=72;

else if(basic>=1700)
gi=48;

else
gi=0;

printf("Group Insurances = %d", gi);
}

Loading
Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Flying Twitter Bird Widget By ICT Sparkle