read and print two dimention array

read and print two dimention array - Q : w r i t a C++...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Q : w r i t a C++ program to read and print two dimension a r ray ? #include<stdio.h> #include<iostream.h> #include<conio.h> void main() { int a[4][4]; for(int i=0;i<4;i++) for(int j=0;j<4;j++) { cout<<endl<<" enter a[ "<<i<<" ] [ "<<j<<" ] ="; cin>>a[i][j]; } for(i=0;i<4;i++) { cout<<endl; for(int j=0;j<4;j++) printf("%5d",a[i][j]); } int x=0,y=0; } ...
View Full Document

This note was uploaded on 10/16/2010 for the course ENG 2266e taught by Professor Aliraqi during the Spring '10 term at 4.1.

Ask a homework question - tutors are online