Created
December 26, 2010 20:50
-
-
Save aelipek/755621 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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