Guest User

Untitled

a guest
Jan 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <iostream.h>
  2.  
  3. int main (int argc, const char * argv[])
  4. {
  5.  
  6. int array[] = {1,2,3,4,5,6};
  7.  
  8. int count = 0;
  9.  
  10. cout << count;
  11.  
  12. for (int i = count; i<6; i++) {
  13. while (count<7) {
  14. for (int j=0; j<count; j++) {
  15. cout << " ";
  16. }
  17. }
  18. cout << array[i];
  19. count = count + 1;
  20. i = count;
  21. }
  22.  
  23. return 0;
  24. }
Add Comment
Please, Sign In to add comment