CS561-SPRING 2002

TOPIC:CS105-ARRAYS

                          Insert the following code in the main program body and then compile and execute the entire piece of code.

cout<<”Out put of one dimensional array!!”<<endl; 

  for(a=0;a<10;a++)

     {      cout<<one_dim[a];

            cout<<” ”;    }  //end for loop 

      cout<<endl;

      cout<<”Out put of two dimensional array!!”<<endl;

 for (j=0;j<3;j++)

        {   for(k=0;k<3;k++)

                   {      cout<<two_dim[j][k];    } // end inner for loop

              cout<<endl;

          } //end outer for loop

 cout<<endl;

                                      

       <=PREV                                       HOME                                              VIEW OUTPUT