Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  test
Language: C/C++
Code:
     #include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
int i,j,n,a[n][n];
char s[n];
gets(s);
n=strlen(s);
for(i=1;i<n;i++)
{
for(j=1;j<n;j++)
{
if(i==j)
{
a[i][j]=s[i];
}
}
}
for(i=0;i<n;i++)
{
for(j=n-0;j<n;j++)
{
a[i+1][j]=s[i+1];
}
}
return 0;
getch();
}
          
Comments: