Program to illustrates Two-dimensional Array


#include <iostream.h>
#include <conio.h>
void main( )
{
int emp[4][2] ;
int i ;
for ( i = 0; i <=3 ; i++)
{
cout<<"\n Enter Employee No. and Salary  : ";
cin>>emp[i][0]>>emp[i][1];
}
                   cout<<"\n Emplyoee Number \t Salary ";
for ( i = 0; i <=3 ; i++)
                           cout<<"\n"<<emp[i][0]<<"\t\t"<<emp[i][1];
getch( );
}

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|