SlideShare uma empresa Scribd logo
1 de 26
NOTES
NOTES
NOTES
NOTES
#include<stdio.h> 
#include<conio.h> 
void main() 
{ 
int arr[10], i; 
clrscr(); 
printf(“Enter Array Elementn”); 
for(i=0;i<10;i++) 
{ 
scanf(“%d”, &arr[i]); 
} 
printf(“Array Elementn”); 
for(i=0;i<10;i++) 
{ 
printf(“%dn”,arr[i]); 
} 
getch(); 
} 
EXTRA
EXTRA
EXTRA
NOTES
EXTRA
EXTRA
#include<stdio.h> 
#include<conio.h> 
void main() 
{ 
int arr[100], s, i , j, temp; 
clrscr(); 
printf(“Enter Array Sizen”); 
scanf(“%d”,&s); 
printf(“Enter Array Elementn”); 
for(i=0;i<s;i++) 
{ 
scanf(“%d”, &arr[i]); 
} 
printf(“Array Element befor sortingn”); 
for(i=0;i<s;i++) 
{ 
printf(“%dn”, arr[i]); 
} 
EXTRA
for(i=0;i<s-1;i++) 
{ 
for(j=0;j<s-1-i;j++) 
{ 
if(arr[j]>arr[j+1]) 
{ 
temp=arr[j]; 
arr[j]=arr[j+1]; 
arr[j+1]=temp; 
} 
} 
} 
printf(“Data after sorting n”); 
for(i=0;i<s;i++) 
{ 
printf(“%dn”, arr[i]); 
} 
getch(); 
} 
EXTRA
EXTRA
#include<stdio.h> 
#include<conio.h> 
void main() 
{ 
int arr[100], s, i , j, temp; 
clrscr(); 
printf(“Enter Array Sizen”); 
sxcanf(“%d”,&s); 
printf(“Enter Array Elementn”); 
for(i=0;i<s;i++) 
{ 
scanf(“%d”, &arr[i]); 
} 
printf(“Array Element befor sortingn”); 
for(i=0;i<s;i++) 
{ 
printf(“%dn”, arr[i]); 
} 
EXTRA
for(i=0;i<s-1;i++) 
{ 
for(j=i+1;j<s;j++) 
{ 
if(arr[i]>arr[j]) 
{ 
temp=arr[i]; 
arr[i]=arr[j]; 
arr[j]=temp; 
} 
} 
} 
printf(“Data after sortingn”); 
for(i=0;i<s;i++) 
{ 
printf(“%dn”,arr[i]); 
} 
getch(); 
} 
EXTRA
EXTRA
EXTRA
#include<stdio.h> 
#include<conio.h> 
void main() 
{ 
int arr[10],s, p, temp,i,k; 
clrscr(); 
printf("enter Array Sizen"); 
scanf("%d",&s); 
printf("Enter Array Elementn"); 
for(i=0;i<s;i++) 
{ 
scanf("%d",&arr[i]); 
} 
printf("Array Elementn"); 
for(i=0;i<s;i++) 
{ 
printf("%dn",arr[i]); 
} 
EXTRA
for(i=1;i<s;i++) 
{ 
p=i-1; 
temp=arr[i]; 
while(temp<arr[p]&&p>=0) 
{ 
arr[p+1]=arr[p]; 
p--; 
} 
arr[p+1]=temp; 
} 
printf("Data after sortingn"); 
for(i=0;i<s;i++) 
{ 
printf("%dn",arr[i]); 
} 
getch(); 
} 
EXTRA
Searching 
Linear Search Binary Search 
EXTRA 
Linear Search- This is the simplest technique to find 
out an element in an unsorted list. 
In this technique the value of the key is compared with the 
first element of the list, if match is found then the search is 
terminated. Otherwise next element from the list is fetched 
and compared with the key and this process is continued till 
the key is found or list is completely.
EXTRA 
Binary Search- Binary search works for sorted lists and is a 
very efficient searching technique. It is used to find the 
location of a given element or record in a list. Other 
information associated with the element can also be 
fetched if required. To find the location of a file in the 
computer directory one can use this searching technique. 
Let low represents lower limit of the list l, high upper and 
mid is average of low and high that is middle of the lower 
and upper limits. 
Mid = (low+high)/2; 
we compare the middle element with key to be searched. If 
the value of middle element is greater than key ,then key 
will exit in lower half of the list, take high = mid-1 and find 
new value of mid.
#include<stdio.h> 
#include<conio.h> 
void main() 
{ 
int arr[100],s, i, first=0, mid=0, last =0, count =0, num; 
clrscr(); 
printf(“Enter Array Sizen”); 
scanf(“%d”,&s); 
printf(“Enter Array Elementn”); 
for(i=0;i<s;i++) 
{ 
scanf(“%d”,&arr[i]); 
} 
printf(“Array Elementn”); 
for(i=0;i<s;i++) 
{ 
printf(“%dn”,arr[i]); 
} 
EXTRA
printf(“Enter the no want to search n”); 
scanf(“%d”,&num); 
last = s-1; 
while((first<=last)&&(count==0)) 
{ 
mid=(first+last)/2; 
if(arr[i]==num) 
{ 
count=mid; 
} 
else if(arr[i]<num) 
{ 
first=mid+1; 
} 
else 
{ 
last=mid-1; 
} 
} 
EXTRA
if(count>0) 
{ 
printf(“No 
found”); 
} 
else 
{ 
printf(“No not found”); 
} 
getch(); 
} 
EXTRA
Double Dimension Array #include<stdio.h> 
#include<conio.h> 
void main() 
{ 
int arr[3][3], i, j; 
clrscr(); 
printf(“Enter Array Elementn”); 
for(i=0;i<3;i++) 
{ 
for(j=0;j<3;j++) 
{ 
scanf(“%d”,&arr[i][j]); 
} 
} 
printf(“Matrix nn”); 
for(i=0;i<3;i++) 
{ 
for(j=0;j<3;j++) 
{ 
printf(“%d ”,arr[i][j]); 
} 
printf(“n”); 
} 
getch(); 
} 
EXTRA

Mais conteúdo relacionado

Mais procurados

C Prog. - Structures
C Prog. - StructuresC Prog. - Structures
C Prog. - Structures
vinay arora
 
C Prog - Strings
C Prog - StringsC Prog - Strings
C Prog - Strings
vinay arora
 

Mais procurados (20)

1D Array
1D Array1D Array
1D Array
 
ADA FILE
ADA FILEADA FILE
ADA FILE
 
Basic c programs updated on 31.8.2020
Basic c programs updated on 31.8.2020Basic c programs updated on 31.8.2020
Basic c programs updated on 31.8.2020
 
SaraPIC
SaraPICSaraPIC
SaraPIC
 
c-programming-using-pointers
c-programming-using-pointersc-programming-using-pointers
c-programming-using-pointers
 
C program
C programC program
C program
 
Cpds lab
Cpds labCpds lab
Cpds lab
 
Session06 functions
Session06 functionsSession06 functions
Session06 functions
 
Examples sandhiya class'
Examples sandhiya class'Examples sandhiya class'
Examples sandhiya class'
 
4. chapter iii
4. chapter iii4. chapter iii
4. chapter iii
 
Practical File of C Language
Practical File of C LanguagePractical File of C Language
Practical File of C Language
 
design and analysis of algorithm Lab files
design and analysis of algorithm Lab filesdesign and analysis of algorithm Lab files
design and analysis of algorithm Lab files
 
C Prog. - Structures
C Prog. - StructuresC Prog. - Structures
C Prog. - Structures
 
Understanding storage class using nm
Understanding storage class using nmUnderstanding storage class using nm
Understanding storage class using nm
 
DataStructures notes
DataStructures notesDataStructures notes
DataStructures notes
 
Ada file
Ada fileAda file
Ada file
 
DAA Lab File C Programs
DAA Lab File C ProgramsDAA Lab File C Programs
DAA Lab File C Programs
 
C Programming Example
C Programming ExampleC Programming Example
C Programming Example
 
C Prog - Strings
C Prog - StringsC Prog - Strings
C Prog - Strings
 
3. chapter ii
3. chapter ii3. chapter ii
3. chapter ii
 

Destaque

Array in c language
Array in c languageArray in c language
Array in c language
home
 
C programming session 01
C programming session 01C programming session 01
C programming session 01
Dushmanta Nath
 
Lab 5 array
Lab 5 arrayLab 5 array
Lab 5 array
mkazree
 

Destaque (20)

C programming function
C  programming functionC  programming function
C programming function
 
C programming string
C  programming stringC  programming string
C programming string
 
C Programming : Arrays
C Programming : ArraysC Programming : Arrays
C Programming : Arrays
 
Arrays
ArraysArrays
Arrays
 
Array in c language
Array in c languageArray in c language
Array in c language
 
Array in c
Array in cArray in c
Array in c
 
C programming session 01
C programming session 01C programming session 01
C programming session 01
 
Array in c
Array in cArray in c
Array in c
 
Array in c
Array in cArray in c
Array in c
 
Excel vba macro programing
Excel vba macro programingExcel vba macro programing
Excel vba macro programing
 
C string
C stringC string
C string
 
Strings in C
Strings in CStrings in C
Strings in C
 
C programming - String
C programming - StringC programming - String
C programming - String
 
Lab 5 array
Lab 5 arrayLab 5 array
Lab 5 array
 
Application software
Application softwareApplication software
Application software
 
Php oops1
Php oops1Php oops1
Php oops1
 
Computer development
Computer developmentComputer development
Computer development
 
TALLY Payroll ENTRY
TALLY Payroll ENTRYTALLY Payroll ENTRY
TALLY Payroll ENTRY
 
Php basic
Php basicPhp basic
Php basic
 
VISUAL BASIC .net ii
VISUAL BASIC .net iiVISUAL BASIC .net ii
VISUAL BASIC .net ii
 

Semelhante a C programming array & shorting

Sorting programs
Sorting programsSorting programs
Sorting programs
Varun Garg
 
Daapracticals 111105084852-phpapp02
Daapracticals 111105084852-phpapp02Daapracticals 111105084852-phpapp02
Daapracticals 111105084852-phpapp02
Er Ritu Aggarwal
 
Chapter 8 c solution
Chapter 8 c solutionChapter 8 c solution
Chapter 8 c solution
Azhar Javed
 

Semelhante a C programming array & shorting (20)

Ds
DsDs
Ds
 
Data structure output 1
Data structure output 1Data structure output 1
Data structure output 1
 
Programs
ProgramsPrograms
Programs
 
Sorting programs
Sorting programsSorting programs
Sorting programs
 
Array Programs.pdf
Array Programs.pdfArray Programs.pdf
Array Programs.pdf
 
Solutionsfor co2 C Programs for data structures
Solutionsfor co2 C Programs for data structuresSolutionsfor co2 C Programs for data structures
Solutionsfor co2 C Programs for data structures
 
array.ppt
array.pptarray.ppt
array.ppt
 
All important c programby makhan kumbhkar
All important c programby makhan kumbhkarAll important c programby makhan kumbhkar
All important c programby makhan kumbhkar
 
programs on arrays.pdf
programs on arrays.pdfprograms on arrays.pdf
programs on arrays.pdf
 
Daapracticals 111105084852-phpapp02
Daapracticals 111105084852-phpapp02Daapracticals 111105084852-phpapp02
Daapracticals 111105084852-phpapp02
 
Cpd lecture im 207
Cpd lecture im 207Cpd lecture im 207
Cpd lecture im 207
 
Chapter 8 c solution
Chapter 8 c solutionChapter 8 c solution
Chapter 8 c solution
 
C programs
C programsC programs
C programs
 
C lab manaual
C lab manaualC lab manaual
C lab manaual
 
Merge sort in CSolution#include-stdio-h- #define MAX 50 void mergeSort.docx
Merge sort in CSolution#include-stdio-h- #define MAX 50 void mergeSort.docxMerge sort in CSolution#include-stdio-h- #define MAX 50 void mergeSort.docx
Merge sort in CSolution#include-stdio-h- #define MAX 50 void mergeSort.docx
 
C Programming Exam problems & Solution by sazzad hossain
C Programming Exam problems & Solution by sazzad hossainC Programming Exam problems & Solution by sazzad hossain
C Programming Exam problems & Solution by sazzad hossain
 
Write a program to check a given number is prime or not
Write a program to check a given number is prime or notWrite a program to check a given number is prime or not
Write a program to check a given number is prime or not
 
program on string in java Lab file 2 (3-year)
program on string in java Lab file 2 (3-year)program on string in java Lab file 2 (3-year)
program on string in java Lab file 2 (3-year)
 
PPT.pptx Searching and Sorting Techniques
PPT.pptx Searching and Sorting TechniquesPPT.pptx Searching and Sorting Techniques
PPT.pptx Searching and Sorting Techniques
 
LAB PROGRAMS SARASWATHI RAMALINGAM
LAB PROGRAMS SARASWATHI RAMALINGAMLAB PROGRAMS SARASWATHI RAMALINGAM
LAB PROGRAMS SARASWATHI RAMALINGAM
 

Mais de argusacademy (20)

Css & dhtml
Css  & dhtmlCss  & dhtml
Css & dhtml
 
Html table
Html tableHtml table
Html table
 
Html ordered & unordered list
Html ordered & unordered listHtml ordered & unordered list
Html ordered & unordered list
 
Html level ii
Html level  iiHtml level  ii
Html level ii
 
Html frame
Html frameHtml frame
Html frame
 
Html forms
Html formsHtml forms
Html forms
 
Html creating page link or hyperlink
Html creating page link or hyperlinkHtml creating page link or hyperlink
Html creating page link or hyperlink
 
Html basic
Html basicHtml basic
Html basic
 
Java script
Java scriptJava script
Java script
 
Php string
Php stringPhp string
Php string
 
Php session
Php sessionPhp session
Php session
 
Php opps
Php oppsPhp opps
Php opps
 
Php if else
Php if elsePhp if else
Php if else
 
Php creating forms
Php creating formsPhp creating forms
Php creating forms
 
Php create and invoke function
Php create and invoke functionPhp create and invoke function
Php create and invoke function
 
Php array
Php arrayPhp array
Php array
 
Sql query
Sql querySql query
Sql query
 
Rdbms
RdbmsRdbms
Rdbms
 
Oracle
OracleOracle
Oracle
 
Vb.net iv
Vb.net ivVb.net iv
Vb.net iv
 

Último

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Último (20)

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 

C programming array & shorting

  • 1.
  • 6. #include<stdio.h> #include<conio.h> void main() { int arr[10], i; clrscr(); printf(“Enter Array Elementn”); for(i=0;i<10;i++) { scanf(“%d”, &arr[i]); } printf(“Array Elementn”); for(i=0;i<10;i++) { printf(“%dn”,arr[i]); } getch(); } EXTRA
  • 10. EXTRA
  • 11. EXTRA
  • 12. #include<stdio.h> #include<conio.h> void main() { int arr[100], s, i , j, temp; clrscr(); printf(“Enter Array Sizen”); scanf(“%d”,&s); printf(“Enter Array Elementn”); for(i=0;i<s;i++) { scanf(“%d”, &arr[i]); } printf(“Array Element befor sortingn”); for(i=0;i<s;i++) { printf(“%dn”, arr[i]); } EXTRA
  • 13. for(i=0;i<s-1;i++) { for(j=0;j<s-1-i;j++) { if(arr[j]>arr[j+1]) { temp=arr[j]; arr[j]=arr[j+1]; arr[j+1]=temp; } } } printf(“Data after sorting n”); for(i=0;i<s;i++) { printf(“%dn”, arr[i]); } getch(); } EXTRA
  • 14. EXTRA
  • 15. #include<stdio.h> #include<conio.h> void main() { int arr[100], s, i , j, temp; clrscr(); printf(“Enter Array Sizen”); sxcanf(“%d”,&s); printf(“Enter Array Elementn”); for(i=0;i<s;i++) { scanf(“%d”, &arr[i]); } printf(“Array Element befor sortingn”); for(i=0;i<s;i++) { printf(“%dn”, arr[i]); } EXTRA
  • 16. for(i=0;i<s-1;i++) { for(j=i+1;j<s;j++) { if(arr[i]>arr[j]) { temp=arr[i]; arr[i]=arr[j]; arr[j]=temp; } } } printf(“Data after sortingn”); for(i=0;i<s;i++) { printf(“%dn”,arr[i]); } getch(); } EXTRA
  • 17. EXTRA
  • 18. EXTRA
  • 19. #include<stdio.h> #include<conio.h> void main() { int arr[10],s, p, temp,i,k; clrscr(); printf("enter Array Sizen"); scanf("%d",&s); printf("Enter Array Elementn"); for(i=0;i<s;i++) { scanf("%d",&arr[i]); } printf("Array Elementn"); for(i=0;i<s;i++) { printf("%dn",arr[i]); } EXTRA
  • 20. for(i=1;i<s;i++) { p=i-1; temp=arr[i]; while(temp<arr[p]&&p>=0) { arr[p+1]=arr[p]; p--; } arr[p+1]=temp; } printf("Data after sortingn"); for(i=0;i<s;i++) { printf("%dn",arr[i]); } getch(); } EXTRA
  • 21. Searching Linear Search Binary Search EXTRA Linear Search- This is the simplest technique to find out an element in an unsorted list. In this technique the value of the key is compared with the first element of the list, if match is found then the search is terminated. Otherwise next element from the list is fetched and compared with the key and this process is continued till the key is found or list is completely.
  • 22. EXTRA Binary Search- Binary search works for sorted lists and is a very efficient searching technique. It is used to find the location of a given element or record in a list. Other information associated with the element can also be fetched if required. To find the location of a file in the computer directory one can use this searching technique. Let low represents lower limit of the list l, high upper and mid is average of low and high that is middle of the lower and upper limits. Mid = (low+high)/2; we compare the middle element with key to be searched. If the value of middle element is greater than key ,then key will exit in lower half of the list, take high = mid-1 and find new value of mid.
  • 23. #include<stdio.h> #include<conio.h> void main() { int arr[100],s, i, first=0, mid=0, last =0, count =0, num; clrscr(); printf(“Enter Array Sizen”); scanf(“%d”,&s); printf(“Enter Array Elementn”); for(i=0;i<s;i++) { scanf(“%d”,&arr[i]); } printf(“Array Elementn”); for(i=0;i<s;i++) { printf(“%dn”,arr[i]); } EXTRA
  • 24. printf(“Enter the no want to search n”); scanf(“%d”,&num); last = s-1; while((first<=last)&&(count==0)) { mid=(first+last)/2; if(arr[i]==num) { count=mid; } else if(arr[i]<num) { first=mid+1; } else { last=mid-1; } } EXTRA
  • 25. if(count>0) { printf(“No found”); } else { printf(“No not found”); } getch(); } EXTRA
  • 26. Double Dimension Array #include<stdio.h> #include<conio.h> void main() { int arr[3][3], i, j; clrscr(); printf(“Enter Array Elementn”); for(i=0;i<3;i++) { for(j=0;j<3;j++) { scanf(“%d”,&arr[i][j]); } } printf(“Matrix nn”); for(i=0;i<3;i++) { for(j=0;j<3;j++) { printf(“%d ”,arr[i][j]); } printf(“n”); } getch(); } EXTRA