Quick actions

cmd+k|ctrl+k

Navigation

Languages

two_D_array

Snippet info

Language

Cpp

Visibility

public

Author

ganesh26

Created

2020-11-17T06:28:08Z

Updated

2020-11-17T14:26:41Z

#include <iostream>
using namespace std;

int main() {
    cout << "Hello World!"<< endl;

    int a[3][5] = {{1,2,3,4,5} , {6 , 7 , 8 , 9 , 10} , {11 , 12 , 13 , 14 ,15 }} ;
    
    int i , j ;
    
    for(i = 0 ; i < 3 ; ++i)
    {
        
      for( j = 0 ; j < 5 ; ++j)
         {
             cout << a[i][j] << " " ;
         }
         
         cout << "\n" ;
         
    }
         
         

    return 0;
}
INFO