Suppose that the input is:32 53 –10 45 –56 –87 132 165 –999What is the output of the following program? (2, 3) Submit your answer to dropbox.
#includeusing namespace std;int main(){int num;int count=0;cin>>num;while(num !=-999){cout<>cin>>num;count++;}cout<>return 0;}
using namespace std;
int main()
{
int num;
int count=0;
cin>>num;
while(num !=-999)
cout<>
count++;
}
return 0;
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here