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
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
Math,
5 months ago
Accountancy,
5 months ago
Science,
5 months ago
Computer Science,
11 months ago
Math,
11 months ago
Math,
1 year ago