#include <iostream>
using namespace std ;
int main()
{
int a[5][5] ,b[5][5] ;
cout << "enter matrix (5*5) : " ;
for ( int i = 0 ; i < 5 ; i++ )
{
for ( int j = 0 ; j < 5 ; j++ )
{
cin >> a[i][j] ;
}
}
cout << "enter multiply number : " ;
int n ;
cin >> n ;
for ( int i = 0 ; i < 5 ; i++ )
{
for ( int j = 0 ; j < 5 ; j++ )
{
b [i][j] = n * a[i][j] ;
cout << b[i][j] << " ";
}
cout << endl ;
}
}