#include <stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int demrate,setcosts,holdcost;
int ans,EOQ;
clrscr();
printf("Enter the Demand Rate :- ");
scanf("%d",&demrate);
printf("Enter the Setup costs :- ");
scanf("%d",&setcosts);
printf("Enter the Holding Cost per item per Unit time :- ");
scanf("%d",&holdcost);
ans = (2 * demrate * setcosts) / (holdcost);
EOQ = sqrt(ans);
printf("The EOQ :- %d",EOQ);
getch();
}