ashoknaina

• Dec 20th, 2011

```Code#include<stdio.h>
main()
{
int a[20][20],i,j,n,m,p,q,k=0;
printf("
Enter Order Of matrix");
scanf("%d%d",&m,&n);
for(i=1;i<=m;i++)
for(j=1;j<=n;j++)
scanf("%d",&a[i][j]);

p=m;
q=n;
i=j=1;

while(k<p*q)
{
for(;j<=n&&k<p*q;j++)
{
printf("%d ",a[i][j]);
k++;
}
j--;
i++;
for(;i<=m && k<p*q;i++)
{
printf("%d ",a[i][j]);
k++;
}
i--;
j--;
for(;j>=i-m+1 && k<p*q;j--)
{
printf("%d ",a[i][j]);
k++;
}
j++;
i--;
for(;i>1 && k<p*q;i--)
{
printf("%d ",a[i][j]);
k++;
}
if(k<p*q)
{
j++;
i++;
n--;
m--;
}
}
}```

Abhijit Singh

• Apr 27th, 2007

/*~~~~~~~~~ Creates square and  rectangular matrices ~~~~~~~~*//* Input required is dim of the spiral matrix. Just feed in two factors of the size of array. i.e If Items are 35 then m = 5 n ...

peprah

• Jan 20th, 2010

Sure why not?First of all you need to know and be sure of the table name and column you want to delete. There you are: DELETE FROM [TABLE_NAME]WHERE [ROW_NAME] = ['COLUMN_NAME']; EXA...

hindol_saha

• Jan 19th, 2010

First mark the column as unuse then drop the cloumn.

shravanam

• Oct 25th, 2007

You can remove a column but first of all you should see that column doest have any values and it should not be a primary keyALTER TABLE DROP COLUMN

Mohammed Abdul Afroze

• Sep 27th, 2007

To drop a Column from a Table.The command is.Sql>Alter table drop column .