Showing Page:
1/1
PROGRAM
#include<iostream.h>
#include<conio.h>
using namspace std;
int main()
{
int a[10], n;
clrscr();
cout<<”Enter the size of array: “;
cin>>n;
cout<<\nEnter the elements of array: “;
for(int i=0;i<n;i++)
cin>>a[i];
cout<<\nTraversal Successful and the entered array is: “;
for(i=0;i<n;i++)
cout<<a[i]<<” “;
getch();
return 0;
}
OUTPUT
Enter the size o array:7
Enter the elements of array:23 1 45 67 89 90 65
Traversal Successful and the entered array is:
23 1 45 67 89 90 65

Unformatted Attachment Preview

Name: Description: ...
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4