#Include Using Namespace Void Int Int

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

#include<iostream>

using namespace std;


void main(){
int n;
int m;
printf("Introduceti linii");
scanf("%d",&n);
cout<<endl;
printf("Intoduceti numarul de coloane");
scanf("%d",&m);
cout<<endl;
int ** matrice;
matrice=new int*[n];
for(int i=0;i<n;i++){
matrice[i]=new int[m];
}
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
matrice[i][j]=i+j;
cout<<matrice[i][j];
}
cout<<endl;
}
}

You might also like