boost learn study
Friday, March 28, 2014
Two-Dimensional Array
/*Below program showing Two Dimensional array...*/ #include
#include
void main() { int a[2][2],r,c; clrscr(); printf("\n\tTwo Dimensional Array\t\n"); printf("\n\t======================\t\n"); printf("\n\tEnter the Rows and Columns:\t\n"); for(r=0;r<2;r++) { for(c=0;c<2;c++) { scanf("%d",&a[r][c]); } } printf("\n\tAfter the Inputting Array:\t\n"); for(r=0;r<2;r++) { for(c=0;c<2;c++) { printf("\t %d \t",a[r][c]); } printf("\n"); } getch(); }
Output is as :
Read more �
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment