Escolar Documentos
Profissional Documentos
Cultura Documentos
#include <conio.h>
#include <string>
*/
/*Estudiates de programacion */
/*II Semestre*/
int main()
int a[50][50];
int grado;
int st;
for ( int k = 0; k < grado; k++ ) for ( int j = 0; j < grado; j++ ) a[k][j] = 0;
if ( matriz == 1 ) {
if ( a[i][j] == 0 )
a[i][j] = cont++;
matriz++;
if ( matriz == 2 ) {
if ( a[j][grado - ( i + 1 )] == 0 )
a[j][grado - ( i + 1 )] = cont++;
matriz++;
if ( matriz == 3 ) {
if ( a[grado - ( i + 1 )][j] == 0 )
matriz++;
if ( matriz == 4 ) {
if ( a[j][i] == 0 )
a[j][i] = cont++;
matriz = 1;
}
if ( a[ii][j] < 10 ) cout << "0"; cout << a[ii][j] << " ";
system("PAUSE");
return 0;