4-labaratoriya ishi
NхN o`lchamlik ikkita matritsa bеrilgan. Matritsalarni bir – biriga kеtma – kеt ulab Nх2N o`lchamlik matritsa хоsil qilinsin.
#include
using namespace std;
int main(){
int n;
cout<<"n ni kiriting!\n";
cin>>n;
double a[n+1][n+1],b[n+1][n+1],c[n+1][2*n+1];
cout<<"Birinchi "<
for(int i=1;i<=n;i++){
for(int j=1;j<=n;j++){
cin>>a[i][j]; } }
cout<<"Ikkinchi "<
for(int i=1;i<=n;i++){
for(int j=1;j<=n;j++){
cin>>b[i][j]; } }
for(int i=1;i<=n;i++){
for(int j=1;j<=2*n;j++){
if(j<=n){
c[i][j]=a[i][j];
}else{
c[i][j]=b[i][j-n]; } } }
for(int i=1;i<=n;i++){
for(int j=1;j<=2*n;j++){
cout<
}
cout< Do'stlaringiz bilan baham: |