Add software
Maillist arhive

Russian
English
   Path: Panvasoft / Programming / Visual C++, C / Code Visual to Flow chart /
16:46:21, Tuesday, 24 December 2024 


Comments:
sergey, s.vasilyev12[at]mail.ru â 27.2.2012 17:00:01
//---------------------------------------------------------------------------

#include <stdio.h>
#include <stdlib.h>
//---------------------------------------------------------------------------
int main(int argc, char *argv[])
{
int i, j, A[9][9], A_[9][9], *B[9][9], C[3][9];


for (i = 0; i < 9; i++)
for (j = 0; j < 9; j++)
A[i][j] = rand()%99;

printf("\nMatriza A:\n");
for (i = 0; i < 9; i++)
{
for (j = 0; j < 9; j++)
printf("%2d ", A[i][j]);
printf("\n");
}

for (i = 0; i < 9; i++)
for (j = 0; j < 9; j++)
{
A_[j][8 - i] = A[i][j];
}
printf("\nObernena Matriza:\n");
for (i = 0; i < 9; i++)
{
for (j = 0; j < 9; j++)
printf("%2d ", A_[i][j]);
printf("\n");
}
printf("\nMatriza B:\n");
for (i = 0; i < 9; i++)
{
for (j = 0; j < 9; j++)
{
B[i][j] = &A_[i][j];
printf("%7d ", B[i][j]);
}
printf("\n");
}
for (i = 0; i < 9; i++)
C[0][i] = *B[i][i];

for (i = 0; i < 9; i++)
C[1][i] = *B[4][i];

for (i = 0; i < 9; i++)
C[2][i] = *B[8 - i][i];
printf("\nMatriza C:\n");
for (i = 0; i < 3; i++)
{
for (j = 0; j < 9; j++)
printf("%2d ", C[i][j]);
printf("\n");
}
getchar();
return 0;
}
//---------------------------------------------------------------------------
stupid, mongol â 13.7.2007 15:19:25
I'm really stupid mongol if I want some flowcharting program...
 Pages: [1]
Add your message about that programm:
Name
Email
Message:
Enter symbols:
To the top

  Subscribe for mail list to receive news with 657, who already receiving it!

 Type your e-mail:

Subscribe
Unscribe
 Mail list arhive

© 1999 - 2024 Panva Web Studio
(0.01209 seconds) Feed back to supprot team