Program:
// Program By http://solutionscpp.blogspot.com
// Author Mansoor Ahmed
// GMail ID: secguy000@gmail.com
// Author Mansoor Ahmed
// GMail ID: secguy000@gmail.com
#include <iostream>
using namespace std;
int main()
{
int arr[5][5]={}; // Null Array
//Filling 2D array
cout<<"Filling Data: " <<endl;
for(int i=0; i<5; i++)
{
for(int j=0; j<5; j++)
{
cin>>arr[i][j];
}
}
//Printing 2D array
cout<<"\nPrinting Data: " <<endl;
for(int i=0; i<5; i++)
{
for(int j=0; j<5; j++)
{
cout<<arr[i][j];
}
}
} // End of Program
using namespace std;
int main()
{
int arr[5][5]={}; // Null Array
//Filling 2D array
cout<<"Filling Data: " <<endl;
for(int i=0; i<5; i++)
{
for(int j=0; j<5; j++)
{
cin>>arr[i][j];
}
}
//Printing 2D array
cout<<"\nPrinting Data: " <<endl;
for(int i=0; i<5; i++)
{
for(int j=0; j<5; j++)
{
cout<<arr[i][j];
}
}
} // End of Program
Output:
I found nice article in your blog.thank you for useful info
ReplyDelete.
This heart information helps and simple to understand thanks to bloggers ' hard work.
ReplyDeleteGarmentprinting