Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int num[10];
  7. for(int k=0;k<10;k++)
  8.  
  9. {
  10. num[k]=0;
  11. }
  12. for(int k=0;k<10;k++)
  13. {
  14. cout<<num[k]<<endl;
  15. }
  16. cout<<endl;cout<<endl;cout<<endl;
  17. num[0]=5;
  18. num[5]=10;
  19. num[9]=10;
  20. for(int k=0;k<10;k++)
  21. {
  22. cout<<num[k]<<endl;
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement