Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- int main (int argc, const char * argv[])
- {
- int array[] = {1,2,3,4,5,6};
- int count = 0;
- cout << count;
- for (int i = count; i<6; i++) {
- while (count<7) {
- for (int j=0; j<count; j++) {
- cout << " ";
- }
- }
- cout << array[i];
- count = count + 1;
- i = count;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment