Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int num[10];
- for(int k=0;k<10;k++)
- {
- num[k]=0;
- }
- for(int k=0;k<10;k++)
- {
- cout<<num[k]<<endl;
- }
- cout<<endl;cout<<endl;cout<<endl;
- num[0]=5;
- num[5]=10;
- num[9]=10;
- for(int k=0;k<10;k++)
- {
- cout<<num[k]<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement