Dev C++
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Visestruki niz- matrica 3x3

Go down

Visestruki niz- matrica 3x3 Empty Visestruki niz- matrica 3x3

Post  Don Corleone Wed Apr 13, 2011 11:33 pm


#include<stdio.h>
#include<conio.h>
int main(){

int sah[3][3];

printf("Unesi te 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("Ispis elemenata matrice \n");
for (int m=0;m<3;m++){
for (int n=0;n<3;n++){

printf("sah[%d][%d]=%d \n",m,n,sah[m][n]);

}
}

getch() ;
}
Don Corleone
Don Corleone
Admin

Posts : 148
Join date : 2009-10-28
Age : 31
Location : Sombor - Serbia

https://programing.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum