Skip to content

Instantly share code, notes, and snippets.

@aelipek
Created December 26, 2010 20:50
Show Gist options
  • Save aelipek/755621 to your computer and use it in GitHub Desktop.
Save aelipek/755621 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main( void )
{
// 5 adet ogrenci icin 8 adet sinavi
// temsil etmesi icin bir ogrenci tablosu
// olusturuyoruz. Bunun icin 5x8 bir matris
// yaratilmasi gerekiyor.
int ogrenci_tablosu[ 5 ][ 8 ];
int i, j;
for( i = 0; i < 5; i++ ) {
for( j = 0; j < 8; j++ ) {
printf( "%d no.'lu ogrencinin ", ( i + 1 ) );
printf( "%d no.'lu sınavı> ", ( j + 1 ) );
// Tek boyutlu dizilerdeki gibi deger
// atiyoruz
scanf( "%d", &ogrenci_tablosu[ i ][ j ] );
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment