Technicalsymposium.com-Free Email Alerts


Enter Your Email :

Important Note:Login & Check Your Email Inbox and Activate Confirmation Link

Subscribe & Get All Fresher Jobs Information & Study Materials PDF and Projects- Free Download

C Programming Books PDF


C Aptitude Question Papers


Datastructure Programming in C



C Programming & Tech Interview Materials PDF- Free Download

C Program for salesman problem.

void main()

{

int ss[50][50]={0};

int x,y,sale,i,a,b,t=0;

clrscr();

printf("\nEnter the How many sales man:");

scanf("%d",&sale);

printf("\nEnter the How many Items:");

scanf("%d",&i);

for(a=0;a
{

for(b=0;b
{

printf("Sales man [%d] item [%d]:",a+1,b+1);

scanf("%d",&ss[a][b]);

}

}

clrscr(); printf("\n**********************************************************");

printf("\n*********************SALES REPORT*************************");

printf("\n**********************************************************\n");

printf("\n\t\t");

for(b=0;b
{

printf("item[%d] ",b+1);

}

printf(" Total");

for(a=0;a
{

printf("\nSales man [%d]",a+1);

for(b=0;b
{

printf(" %d\t",ss[a][b]);

t+=ss[a][b];

}

printf(" %d",t);

t=0;

}

printf("\n********************************************************\n");

printf("TOTAL :");

printf("\t\t");

x=0,y=0;

for(a=0;a
{

for(b=0;b
{

x=x+ss[b][a];

}

y=y+x;

printf(" %d\t",x);

x=0;

}

printf(" %d\t",y);

printf("\n********************************************************");

getch();

}

Download All C Programming & Study Materials PDF