copy in your program and then run..

void  Ubaid(int x)[/B] //this is function x value is 5 or directly set x=5
{
// x=5;
for(int i=x;i>0;i--)
{
printf("\n");
for(int j=1; j<=i; j++)
{
printf("%d",j);
}
for(int u=i-1;u>0;u--)
{
printf("%d",u);
}
[B]}[/B]
//start another from here that print the opposite

for(int p=1;p<=x;p++)
[B]{[/B]
printf("\n");
for(int e=1;e<p;e++)
{
printf("%d",e);
}
for(int o=e;o>0;o--)
{
printf("%d",o);
}
[B]}[/B]
}
  [B] The out will 
   123454321
   1234321
   12321 
   121
    1
   121
   1234123
   123451234

 any question plz reply also.. copy page in any language in c#,c++,c,java,php [/B]

[B] ALSO COPY AND PASTE THE COMPLETE PROGRAM IN  [B] YOUR  C LANGUAGE (Turbo c 3.0)[/B][/B]
[B]solve by software engineer Ubaid..[/B]
OR Complete Program
#include<conio.h>
#include<stdio.h>
[B]void[/B] [B] Ubaid(int x)[/B]//function declare..
{
for(int i=x;i>0;i--)
{
printf("\n");
for(int j=1; j<=i; j++)
{
printf("%d",j);
}
for(int u=i-1;u>0;u--)
{
printf("%d",u);
}
}
//start another from here
for(int p=1;p<=x;p++)
{
printf("\n");
for(int e=1;e<p;e++)
{
printf("%d",e);
}
for(int o=e;o>0;o--)
{
printf("%d",o);
}
}

}
void main()
{
clrscr();
printf("the output of function is..");
printf("\n");
printf("\n");
Ubaid(6);//THIS IS FUNCTION CALL AND ENTER VAUE
getch();
}