My best guess is that the program has to do the following:
Suppose 5,4,3,2,1 are the 5 integers input. Then the output should be something like:
5 4 3 2 1
4 3 2 1
3 2 1
2 1
1
I have done the following:
Code:
#include <iostream.h>
#include <stdlib.h>
int main()
{
int a;
int b;
cout<<"Enter 5 Integers:";
cin >> a,b;
for( ; a>0; a--){
for( ; b>0; b--);
cout << a,b;
}
system("PAUSE");
return 0;
}
If I only use the first for statement, I get 54321 after inputing 5. But once I add the second integer, I only get output for the first integer, none for the second.