City Allowance

Write a program for calculate city allowance using following condition
1. 20% of basic. but if city allowance grater then 2500 then city allowance will be fixed 2500

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

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

ca=basic*.20;

if(ca>2500)
ca=2500;

printf("City allowance =%d", ca);
}

Loading
Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Flying Twitter Bird Widget By ICT Sparkle