main()
{
int p;
char cr;
printf("Enter the customer order :- ");
scanf("%d",&p);
printf("Is his credit OK ?(y/n)\n");
cr=getche();
if(p<=100 && cr=='y' )
printf("\nMaaldar party hai Boss :) !!! %d product is supplied to this customer.");
else if(p>100 && cr=='y')
printf("\nMaaldar party hai Boss :) !!! But sorry we have not such amount of product so 100 products will be supplied now.");
else
printf("\nSorry boss! First clear your credits, until we cant supply you any more.");
}
output:-
thanks bro
ReplyDeleteWhat is p
ReplyDelete