Social Sciences, asked by shreyainsta44, 11 months ago

18. Write the output of the given statements:
a. -intj = 5;
cout<<j«<j++ << ++j;

b.- char ch = 'x';
ch = (ch == 'b)? ch:'b';
cout <<ch;

c.-intz, x=5, y=3;
z=--y + y++ +--x;
cout <<z;​

Answers

Answered by Anonymous
0

//Example 1

#include <iostream>

using namespace std;

int main()

{

int input;

bool win = false;

do {

cout << "Please enter a number: " << flush;

cin >> input;

if (56 <= input && input >= 78) {

cout<<"You win!"<<endl;

win = true;

}

else {

cout<<"You lose!"<<endl;

}

} while(win == false);

return 0;

}

Similar questions