#include<stdio.h>
#include<conio.h>
main(){
// matrica 3x3 ponavljanje gradiva
int sah[3][3];
printf(" Unesite elemente matrice 3x3\n");
for (int i=0;i<3;i++){
for (int j=0;j<3;j++){
printf("sah[%d][%d]=",i,j);scanf("%d",&sah[i][j]);printf("\n");
}
}
printf("Printf ispis elemenata matrice 3x3 \n");
for (int i=0;i<3;i++){
for (int j=0;j<3;j++){
printf("sah[%d][%d]=%d \n",i,j,sah[i][j]);
}
}
getch();
}
#include<conio.h>
main(){
// matrica 3x3 ponavljanje gradiva
int sah[3][3];
printf(" Unesite elemente matrice 3x3\n");
for (int i=0;i<3;i++){
for (int j=0;j<3;j++){
printf("sah[%d][%d]=",i,j);scanf("%d",&sah[i][j]);printf("\n");
}
}
printf("Printf ispis elemenata matrice 3x3 \n");
for (int i=0;i<3;i++){
for (int j=0;j<3;j++){
printf("sah[%d][%d]=%d \n",i,j,sah[i][j]);
}
}
getch();
}
No comments:
Post a Comment