sample code for aligning the code
Code:
#include<stdio.h>
#include<stdlib.h>
int main()
{
srand(0);
int i,j,a[7][7];
for(i=0;i<7;i++)
{
for(j=0;j<7;j++)
a[i][j]=rand()%10;
}
printf("\n College \n");
printf("\n%25d%5d%5d%5d%5d%5d%5d\t\t%5s\n",1,2,3,4,5,6,7,"Size total");
printf("------------------------------------------------------------------------------\n");
for(i=0;i<7;i++)
{
printf("%25d",a[i][0]);
for(j=1;j<7;j++)
{
printf("%5d",a[i][j]);
}
printf("\n");
}
getchar();
return 0;
}
/*my output
College
1 2 3 4 5 6 7 Size total
------------------------------------------------------------------------------
8 9 8 7 5 7 5
5 0 2 3 0 2 1
7 1 5 5 7 0 6
1 5 6 7 3 1 0
5 8 6 0 0 7 7
7 1 7 6 7 3 8
3 7 7 4 2 1 8
*/
ssharish2005