Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<stdlib.h>
- #include<time.h>
- using namespace std;
- int main()
- {
- int x;
- cout<<"Enter size of array: ";
- cin>>x;
- int tab[x];
- for(int i=0;i<x;i++)
- {
- cin>>tab[i];
- }
- for(int v=0;v<x;v++)
- {
- if(v%4==0)
- {
- cout<<tab[v]<<" ";
- }
- else
- cout<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement