#include using namespace std; int n=6,i; int a[2][6],t[2][6-1],e[2],x[2]; int f1[6],f2[6],l[2][6],fe,le; void prnt_statns(){//int f1[],int f2[],int l[][],int fe,int le,int n){ int i=le; cout<<"line "<0;--j){ i=l[i-1][j]; cout<<"line "<>n; int a[2][n],t[2][n-1],e[2],x[2];*/ cout<<"Enter the entry times..\n1. "; e[0]=2;//cin>>e[0]; cout<<"2. "; e[1]=4;//cin>>e[1]; cout<<"Enter the exit times..\n1. "; x[0]=3;//cin>>x[0]; cout<<"2. "; x[1]=2;//cin>>x[1]; cout<<"Enter the station times of row 1:\n"; //a[0][]={7,9,3,4,8,4};// for(i=0;i>a[0][i]; cout<<"Enter the station times of row 2:\n"; //a[1]={8,5,6,4,5,7};// for(i=0;i>a[1][i]; cout<<"Enter transaction times from row 1:\n"; //t[0]={2,3,1,3,4};// for(i=0;i>t[0][i]; cout<<"Enter transaction times from row 2:\n"; //t[1]={2,1,2,2,1};// for(i=0;i>t[0][i]; fast_way();//a,t,e,x,n); return 0; } /* int main(){ cout<<"This program gives the fastest way through a factory of n machines..\n"; cout<<"Enter number of machines.. "; int n,i; cin>>n; int a[2][n],t[2][n-1],e[2],x[2]; cout<<"Enter the entry times..\n1. "; cin>>e[0]; cout<<"2. "; cin>>e[1]; cout<<"Enter the exit times..\n1. "; cin>>x[0]; cout<<"2. "; cin>>x[1]; cout<<"Enter the station times of row 1:\n"; for(i=0;i>a[0][i]; cout<<"Enter the station times of row 2:\n"; for(i=0;i>a[1][i]; cout<<"Enter transaction times from row 1:\n"; for(i=0;i>t[0][i]; cout<<"Enter transaction times from row 2:\n"; for(i=0;i>t[0][i]; fast_way(a,t,e,x,n); return 0; } */