C program to calculate salary with bonus amount.Using micro and conditional operator
#include#include
#define BONUS(x) (x<10000 font="" x="">10000>
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();
}