Search This Blog

Translate

C program to calculate salary with bonus amount.Using micro and conditional operator

C program  to calculate salary with bonus amount.Using micro and conditional operator

#include
#include
#define BONUS(x) (x<10000 font="" x="">
void main()
{
long sal,ans;
clrscr();
printf("Enter the salary=");
scanf("%ld",&sal);
ans=BONUS(sal);
printf("\n\nSalary with bouns amount is= %ld",ans);
getch();
}


C program  to calculate salary with bonus amount.Using micro and conditional operator

C Program example List

Google+ Badge