10 printf("Enter quantity and Credit (0- Not Ok 1- Ok):");
11 scanf("%d %d",&qty
,&credit
);
13 if(qty
<=stock
&& credit
==1)
14 printf("Supplying Item\n");
15 else if(qty
<=stock
&& credit
==0)
16 printf("You have not credit\n");
17 else if(qty
>stock
&& credit
==1)
18 printf("You have our supplies, rest will be supplied in a week\n");