#include
using namespace std ;
main()
{
int stu [10][4] ;
int i, j ;
for ( i = 1 ; i <= 10 ; i ++ )
{
cout << "請輸入"<< "第" << i << "個學生的四門成績: " ;
for ( j = 1 ; j <= 4 ; j ++ )
{
cin >> stu [10][4] ;
}
}
for ( i = 1 ; i <= 10 ; i ++ )
{
for ( j = 1 ; j <= 4 ; j ++ )
{
cout << stu [i][j] << endl;
}
}
}
#include <iostream>
using namespace std;
int main(){
int stu [10][4] ;
int i, j ;
for ( i = 0 ; i < 10 ; i ++ )
{
cout << "請輸入"<< "第" << i+1 << "個學生的四門成績: " ;
for ( j = 0 ; j < 4 ; j ++ )
{
cin >> stu [i][j] ;
}
}
for ( i = 0 ; i < 10 ; i ++ )
{
for ( j = 0 ; j < 4 ; j ++ )
{
cout << stu [i][j] <<" ";
}
cout<<endl;
}
}