Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int arr[50],num,i;
- cout<<" Number of element:\n";
- cin>>num;
- cout<<"num:"<<num<<"element stored in an array";
- for(i=0;i<num;i++)
- {
- cin>>arr[i];
- }
- cout<<"enter the element storing the array";
- for(i=0;i<num;i++)
- {
- cout<<arr[i]<<"/t";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement